From 673422755dcc2327d6c8850de17e68ae05e08e29 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Mon, 21 Oct 2019 13:57:55 +0300 Subject: mac: change preimage_insecure to be a flag Signed-off-by: Dmitry Eremin-Solenikov --- lib/gnutls_int.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/gnutls_int.h') 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 { -- cgit v1.2.1