aboutsummaryrefslogtreecommitdiff
path: root/lib/include/crypto/ecdh.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/include/crypto/ecdh.h')
-rw-r--r--lib/include/crypto/ecdh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/include/crypto/ecdh.h b/lib/include/crypto/ecdh.h
index 6c87bbe..c28dbd5 100644
--- a/lib/include/crypto/ecdh.h
+++ b/lib/include/crypto/ecdh.h
@@ -41,5 +41,8 @@ struct x25519_keypair {
int gen_x25519_keypair(struct x25519_keypair *res);
int free_x25519_keypair(struct x25519_keypair *xkp);
+int gen_session_key(const unsigned char *priv,
+ const unsigned char *peer_pubkey, unsigned char **res);
+int free_session_key(unsigned char *session_key);
#endif /* CRYPTO_ECDH_H_ */