From 25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 27 Oct 2016 09:25:53 +0200 Subject: Adds libgcrypt implementation for elgamal in multiplicative group. Also adapts the API to both handle sodium and gcrypt libraries. --- libcmix-crypto/sharedkey.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libcmix-crypto/sharedkey.h') diff --git a/libcmix-crypto/sharedkey.h b/libcmix-crypto/sharedkey.h index c37ae41..b89cb5b 100644 --- a/libcmix-crypto/sharedkey.h +++ b/libcmix-crypto/sharedkey.h @@ -14,8 +14,7 @@ extern "C" { * Stored the derived shared secret after for instance Diffie-Hellman. */ struct SharedKey { - unsigned char* shared; ///< The Shared key. - unsigned int shared_len; ///< The shared key length. + void* shared; ///< The Shared key. }; #ifdef __cplusplus -- cgit v1.2.3-70-g09d2