Updated wolfcrypt/src/sha256.c.

This commit is contained in:
jrblixt
2017-04-14 16:42:18 -06:00
parent 3749988ee2
commit f7c58b0643

View File

@@ -45,11 +45,11 @@
} }
int wc_InitSha256_ex(Sha256* sha, void* heap, int devId) int wc_InitSha256_ex(Sha256* sha, void* heap, int devId)
{ {
(void)heap;
(void)devId;
if (sha == NULL) { if (sha == NULL) {
return BAD_FUNC_ARG; return BAD_FUNC_ARG;
} }
(void)heap;
(void)devId;
return InitSha256_fips(sha); return InitSha256_fips(sha);
} }
int wc_Sha256Update(Sha256* sha, const byte* data, word32 len) int wc_Sha256Update(Sha256* sha, const byte* data, word32 len)
@@ -1926,9 +1926,6 @@ static int Transform_AVX2(Sha256* sha256)
int wc_InitSha256(Sha256* sha256) int wc_InitSha256(Sha256* sha256)
{ {
if (sha256 == NULL) {
return BAD_FUNC_ARG;
}
return wc_InitSha256_ex(sha256, NULL, INVALID_DEVID); return wc_InitSha256_ex(sha256, NULL, INVALID_DEVID);
} }