Merge pull request #46 from JacobBarthelmeh/testing

update SHA256 name
pull/47/head
John Safranek 2018-03-27 14:51:59 -07:00 committed by GitHub
commit 5b739831fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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));