Rename the internal "Hash" structure used by Hmac as it is too generic.

This commit is contained in:
David Garske
2021-11-04 11:56:00 -07:00
parent d24bfb6bf7
commit 74a32e92eb

View File

@ -115,7 +115,7 @@ enum {
#endif #endif
/* hash union */ /* hmac hash union */
typedef union { typedef union {
#ifndef NO_MD5 #ifndef NO_MD5
wc_Md5 md5; wc_Md5 md5;
@ -138,11 +138,11 @@ typedef union {
#ifdef WOLFSSL_SHA3 #ifdef WOLFSSL_SHA3
wc_Sha3 sha3; wc_Sha3 sha3;
#endif #endif
} wc_Hmac_Hash; } wc_HmacHash;
/* Hmac digest */ /* Hmac digest */
struct Hmac { struct Hmac {
wc_Hmac_Hash hash; wc_HmacHash hash;
word32 ipad[WC_HMAC_BLOCK_SIZE / sizeof(word32)]; /* same block size all*/ word32 ipad[WC_HMAC_BLOCK_SIZE / sizeof(word32)]; /* same block size all*/
word32 opad[WC_HMAC_BLOCK_SIZE / sizeof(word32)]; word32 opad[WC_HMAC_BLOCK_SIZE / sizeof(word32)];
word32 innerHash[WC_MAX_DIGEST_SIZE / sizeof(word32)]; word32 innerHash[WC_MAX_DIGEST_SIZE / sizeof(word32)];