Bump HMAC_MAX_MD_CBLOCK to 200 due to SHA-3
authorTomas Mraz <tomas@openssl.org>
Mon, 3 May 2021 13:45:31 +0000 (15:45 +0200)
committerPauli <pauli@openssl.org>
Tue, 4 May 2021 23:30:29 +0000 (09:30 +1000)
The maximum (theoretical) block size of SHA3 is 200 bytes.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15125)

include/openssl/hmac.h

index c5b4e670acaede8f7715b5947cff359cd738c1e9..c954b3767de85fb758436377aefd4ca0428d344d 100644 (file)
@@ -21,7 +21,7 @@
 # include <openssl/evp.h>
 
 # ifndef OPENSSL_NO_DEPRECATED_3_0
-#  define HMAC_MAX_MD_CBLOCK      128    /* Deprecated */
+#  define HMAC_MAX_MD_CBLOCK      200    /* Deprecated */
 # endif
 
 # ifdef  __cplusplus