From 74a32e92eb84ea464b953640b35d47731bac2650 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 4 Nov 2021 11:56:00 -0700 Subject: [PATCH] Rename the internal "Hash" structure used by Hmac as it is too generic. --- wolfssl/wolfcrypt/hmac.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfssl/wolfcrypt/hmac.h b/wolfssl/wolfcrypt/hmac.h index b9d05158b..21d77cff6 100644 --- a/wolfssl/wolfcrypt/hmac.h +++ b/wolfssl/wolfcrypt/hmac.h @@ -115,7 +115,7 @@ enum { #endif -/* hash union */ +/* hmac hash union */ typedef union { #ifndef NO_MD5 wc_Md5 md5; @@ -138,11 +138,11 @@ typedef union { #ifdef WOLFSSL_SHA3 wc_Sha3 sha3; #endif -} wc_Hmac_Hash; +} wc_HmacHash; /* Hmac digest */ struct Hmac { - wc_Hmac_Hash hash; + wc_HmacHash hash; word32 ipad[WC_HMAC_BLOCK_SIZE / sizeof(word32)]; /* same block size all*/ word32 opad[WC_HMAC_BLOCK_SIZE / sizeof(word32)]; word32 innerHash[WC_MAX_DIGEST_SIZE / sizeof(word32)];