forked from wolfSSL/wolfssl
if using SHA-512 but not SHA-384, fix so that HMAC still works
This commit is contained in:
@ -58,6 +58,9 @@ enum {
|
|||||||
MD5 = 0,
|
MD5 = 0,
|
||||||
#endif
|
#endif
|
||||||
#if defined(CYASSL_SHA512)
|
#if defined(CYASSL_SHA512)
|
||||||
|
#ifndef CYASSL_SHA384
|
||||||
|
SHA384 = 5,
|
||||||
|
#endif
|
||||||
INNER_HASH_SIZE = SHA512_DIGEST_SIZE,
|
INNER_HASH_SIZE = SHA512_DIGEST_SIZE,
|
||||||
HMAC_BLOCK_SIZE = SHA512_BLOCK_SIZE
|
HMAC_BLOCK_SIZE = SHA512_BLOCK_SIZE
|
||||||
#elif defined(CYASSL_SHA384)
|
#elif defined(CYASSL_SHA384)
|
||||||
|
Reference in New Issue
Block a user