From 3749988ee2a3327c06576dfe7912feeade7e1d86 Mon Sep 17 00:00:00 2001 From: jrblixt Date: Fri, 14 Apr 2017 16:24:25 -0600 Subject: [PATCH] Updated wolfcrypt/src/sha.c. --- wolfcrypt/src/sha.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/wolfcrypt/src/sha.c b/wolfcrypt/src/sha.c index e35c5ba7d..267fafb21 100755 --- a/wolfcrypt/src/sha.c +++ b/wolfcrypt/src/sha.c @@ -42,11 +42,11 @@ } int wc_InitSha_ex(Sha* sha, void* heap, int devId) { + (void)heap; + (void)devId; if (sha == NULL) { return BAD_FUNC_ARG; } - (void)heap; - (void)devId; return InitSha_fips(sha); } @@ -277,9 +277,6 @@ { int ret = 0; - if (sha == NULL) { - return BAD_FUNC_ARG; - } sha->digest[0] = 0x67452301L; sha->digest[1] = 0xEFCDAB89L; sha->digest[2] = 0x98BADCFEL; @@ -546,9 +543,6 @@ int wc_ShaFinal(Sha* sha, byte* hash) int wc_InitSha(Sha* sha) { - if (sha == NULL) { - return BAD_FUNC_ARG; - } return wc_InitSha_ex(sha, NULL, INVALID_DEVID); }