summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2017-05-18 04:09:51 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-10-21 14:25:15 +0300
commit7ad363791ebf9c1f45ae6b99b49540d442850ba9 (patch)
tree57929baa2a3d857f3b1d4ce71de24aabb013aad7 /lib/gnutls_int.h
parent673422755dcc2327d6c8850de17e68ae05e08e29 (diff)
downloadgnutls-7ad363791ebf9c1f45ae6b99b49540d442850ba9.tar.gz
Support GOST cipher suite MAC calculation
GOST ciphersuites require that MAC is calculated over _all_ packets, rather than just current packet. Add flag to auth_cipher_hd_st controlling this behaviour. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index ea9d00852a..5f1a915a14 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -694,6 +694,7 @@ typedef struct gnutls_group_entry_st {
} gnutls_group_entry_st;
#define GNUTLS_MAC_FLAG_PREIMAGE_INSECURE 1 /* if this algorithm should not be trusted for pre-image attacks */
+#define GNUTLS_MAC_FLAG_CONTINUOUS_MAC (1 << 1) /* if this MAC should be used in a 'continuous' way in TLS */
/* This structure is used both for MACs and digests
*/
typedef struct mac_entry_st {