summaryrefslogtreecommitdiff
path: root/lib/includes/gnutls
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2016-11-30 01:32:30 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-06-24 03:08:23 +0300
commit92daa9548dfd53490e6e463e4ce5185cdd766be0 (patch)
tree14f3e6caac7ce8a9fe4279c1b476050ceec7732e /lib/includes/gnutls
parent7d8fd3aee4d71e1cd79ab5c980d137b363283a33 (diff)
downloadgnutls-92daa9548dfd53490e6e463e4ce5185cdd766be0.tar.gz
Add MAC api to support copying of instances
GOST ciphersuites requires continuously computing MAC of all the previously sent or received data. The easies way to support that is to add support for copy function, that creates MAC instance with the same internal state. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/includes/gnutls')
-rw-r--r--lib/includes/gnutls/crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/includes/gnutls/crypto.h b/lib/includes/gnutls/crypto.h
index 93a157857c..640924bed5 100644
--- a/lib/includes/gnutls/crypto.h
+++ b/lib/includes/gnutls/crypto.h
@@ -208,6 +208,7 @@ typedef void (*gnutls_mac_deinit_func) (void *ctx);
typedef int (*gnutls_mac_fast_func) (gnutls_mac_algorithm_t, const void *nonce,
size_t nonce_size, const void *key, size_t keysize,
const void *text, size_t textsize, void *digest);
+typedef void *(*gnutls_mac_copy_func) (const void *ctx);
int
gnutls_crypto_register_mac(gnutls_mac_algorithm_t mac,