From 845481ad91fb7aba8b335083bd8f3fe224b3a376 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 25 Sep 2024 21:15:02 -0400 Subject: lib: crypto: Add session key generation Signed-off-by: Ian Moffett --- lib/include/crypto/ecdh.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/include/crypto/ecdh.h') 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_ */ -- cgit v1.2.3