diff options
author | Daiki Ueno <ueno@gnu.org> | 2022-01-15 11:27:20 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2022-05-05 16:50:04 +0200 |
commit | 26d57fdad875962400cb117f257a38ad0781ea3a (patch) | |
tree | f0439343711c7959338c26d58fc64e0c97ee8892 /lib/includes | |
parent | b70b1838a22ebf901e4d926021a5c33732797864 (diff) | |
download | gnutls-26d57fdad875962400cb117f257a38ad0781ea3a.tar.gz |
gnutls_aead_cipher_set_key: new function
This adds gnutls_aead_cipher_set_key, which enables to reuse the same
handle but reset the context and key, without releasing the memory.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/includes')
-rw-r--r-- | lib/includes/gnutls/crypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/includes/gnutls/crypto.h b/lib/includes/gnutls/crypto.h index fe046a4239..506f3b161e 100644 --- a/lib/includes/gnutls/crypto.h +++ b/lib/includes/gnutls/crypto.h @@ -69,6 +69,10 @@ typedef struct api_aead_cipher_hd_st *gnutls_aead_cipher_hd_t; int gnutls_aead_cipher_init(gnutls_aead_cipher_hd_t * handle, gnutls_cipher_algorithm_t cipher, const gnutls_datum_t * key); + +int gnutls_aead_cipher_set_key(gnutls_aead_cipher_hd_t handle, + const gnutls_datum_t *key); + int gnutls_aead_cipher_decrypt(gnutls_aead_cipher_hd_t handle, const void *nonce, size_t nonce_len, |