summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-10-21 13:57:55 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-10-21 14:17:26 +0300
commit673422755dcc2327d6c8850de17e68ae05e08e29 (patch)
tree25ea5d6573400d940cb1f90c0549aa9966336b8e /lib/gnutls_int.h
parent9e6d30751c911a64cc0bbe37f65ca124a9ec51cc (diff)
downloadgnutls-673422755dcc2327d6c8850de17e68ae05e08e29.tar.gz
mac: change preimage_insecure to be a flag
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 33c2318030..ea9d00852a 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -693,6 +693,7 @@ typedef struct gnutls_group_entry_st {
unsigned tls_id; /* The RFC4492 namedCurve ID or TLS 1.3 group ID */
} gnutls_group_entry_st;
+#define GNUTLS_MAC_FLAG_PREIMAGE_INSECURE 1 /* if this algorithm should not be trusted for pre-image attacks */
/* This structure is used both for MACs and digests
*/
typedef struct mac_entry_st {
@@ -705,7 +706,7 @@ typedef struct mac_entry_st {
unsigned nonce_size;
unsigned placeholder; /* if set, then not a real MAC */
unsigned block_size; /* internal block size for HMAC */
- unsigned preimage_insecure; /* if this algorithm should not be trusted for pre-image attacks */
+ unsigned flags;
} mac_entry_st;
typedef struct {