Updated wolfcrypt/src/sha.c.

This commit is contained in:
jrblixt
2017-04-14 16:24:25 -06:00
parent 5b5c8f1e95
commit 3749988ee2

View File

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