From 5ef97acbab94b5f859d1ce2ac12a54ab8157e85e Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 29 Sep 2021 16:34:31 -0500 Subject: [PATCH] types.h: add back missing WC_HASH_TYPE_MAX to enum wc_HashType when HAVE_FIPS_VERSION <= 2 (now WC_HASH_TYPE_BLAKE2S, since SHAKE is now excluded from the enum). --- wolfssl/wolfcrypt/types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index b0fb09772..88f155ad7 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -895,6 +895,7 @@ decouple library dependencies with standard string, memory and so on. WC_HASH_TYPE_SHA3_512 = 13, WC_HASH_TYPE_BLAKE2B = 14, WC_HASH_TYPE_BLAKE2S = 19, + WC_HASH_TYPE_MAX = WC_HASH_TYPE_BLAKE2S #ifndef WOLFSSL_NOSHA512_224 #define WOLFSSL_NOSHA512_224 #endif