aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/keypair.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-27 09:25:53 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-27 09:25:53 +0200
commit25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c (patch)
tree079ea63fcc874506072a91b13d2612b510cf158e /libcmix-crypto/keypair.h
parent9eaf47d5dfa56ca79ae903aabfc2cf52bdfb981e (diff)
downloadcmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.gz
cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.bz2
cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.zip
Adds libgcrypt implementation for elgamal in multiplicative group.
Also adapts the API to both handle sodium and gcrypt libraries.
Diffstat (limited to 'libcmix-crypto/keypair.h')
-rw-r--r--libcmix-crypto/keypair.h6
1 files changed, 2 insertions, 4 deletions
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
};