diff options
author | Ian Moffett <ian@osmora.org> | 2024-09-25 21:15:02 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-09-25 21:15:02 -0400 |
commit | 845481ad91fb7aba8b335083bd8f3fe224b3a376 (patch) | |
tree | 097a867696bb84b87e604afeb7a4ce483c571c92 /lib/include/crypto | |
parent | 9cb48c92ea0f653c0924a466be07e5ac11a67ee7 (diff) |
lib: crypto: Add session key generation
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/include/crypto')
-rw-r--r-- | lib/include/crypto/ecdh.h | 3 |
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_ */ |