From 3b6b70adeb3658b4ae154076f2bcc36d4597e38e Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 27 Mar 2018 14:42:06 -0600 Subject: [PATCH] update SHA256 name --- src/internal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal.c b/src/internal.c index 4737b70..edd658a 100644 --- a/src/internal.c +++ b/src/internal.c @@ -4034,7 +4034,7 @@ static INLINE int CreateMac(WOLFSSH* ssh, const byte* in, word32 inSz, { Hmac hmac; - ret = wc_HmacSetKey(&hmac, SHA256, + ret = wc_HmacSetKey(&hmac, WC_SHA256, ssh->keys.macKey, ssh->keys.macKeySz); if (ret == WS_SUCCESS) @@ -4092,7 +4092,7 @@ static INLINE int VerifyMac(WOLFSSH* ssh, const byte* in, word32 inSz, break; case ID_HMAC_SHA2_256: - ret = wc_HmacSetKey(&hmac, SHA256, + ret = wc_HmacSetKey(&hmac, WC_SHA256, ssh->peerKeys.macKey, ssh->peerKeys.macKeySz); if (ret == WS_SUCCESS) ret = wc_HmacUpdate(&hmac, flatSeq, sizeof(flatSeq));