diff options
Diffstat (limited to 'libcmix-crypto/curve25519/curve25519.h')
| -rw-r--r-- | libcmix-crypto/curve25519/curve25519.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libcmix-crypto/curve25519/curve25519.h b/libcmix-crypto/curve25519/curve25519.h index 319e693..ef466a3 100644 --- a/libcmix-crypto/curve25519/curve25519.h +++ b/libcmix-crypto/curve25519/curve25519.h @@ -4,11 +4,18 @@ extern "C" { #endif -#include "keypair.h" +#include "api.h" #include <stdlib.h> + extern struct KeyPair curve25519_create_keypair(); +extern void curve25519_keypair_deleter(struct KeyPair p); + +extern struct SharedKey curve25519_derive_shared_key(struct KeyPair pair, unsigned char* pub_key, bool swap_pub_order); +extern void curve25519_shared_key_deleter(struct SharedKey s); + +struct Api get_curve25519_implementation(); #ifdef __cplusplus } |
