diff options
Diffstat (limited to 'libcmix-crypto/elgamal/elgamal.h')
| -rw-r--r-- | libcmix-crypto/elgamal/elgamal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libcmix-crypto/elgamal/elgamal.h b/libcmix-crypto/elgamal/elgamal.h new file mode 100644 index 0000000..77b5c9b --- /dev/null +++ b/libcmix-crypto/elgamal/elgamal.h @@ -0,0 +1,19 @@ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "api.h" + +extern struct KeyPair elgamal_create_keypair(); +extern void elgamal_keypair_deleter(struct KeyPair p); + +extern struct SharedKey elgamal_derive_shared_key(struct KeyPair pair, unsigned char* pub_key, bool swap_pub_order); +extern void elgamal_shared_key_deleter(struct SharedKey s); + +struct Api get_elgamal_implementation(); + +#ifdef __cplusplus +} +#endif |
