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/keypair.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libcmix-crypto/keypair.h') diff --git a/libcmix-crypto/keypair.h b/libcmix-crypto/keypair.h index 838291d..3b6e0d1 100644 --- a/libcmix-crypto/keypair.h +++ b/libcmix-crypto/keypair.h @@ -17,10 +17,8 @@ extern "C" { * responsible for memory meanagement. See the Api struct for examples of this. */ struct KeyPair { - unsigned char* sec; ///< Private key - unsigned char* pub; ///< Public key - unsigned int sec_len; ///< Private key length - unsigned int pub_len; ///< Public key length + void* sec; ///< Private key + void* pub; ///< Public key }; -- cgit v1.2.3-70-g09d2