aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/sharedkey.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/sharedkey.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/sharedkey.h')
-rw-r--r--libcmix-crypto/sharedkey.h3
1 files changed, 1 insertions, 2 deletions
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