mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Updated wolfcrypt/src/sha256.c.
This commit is contained in:
@@ -45,11 +45,11 @@
|
||||
}
|
||||
int wc_InitSha256_ex(Sha256* sha, void* heap, int devId)
|
||||
{
|
||||
(void)heap;
|
||||
(void)devId;
|
||||
if (sha == NULL) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
(void)heap;
|
||||
(void)devId;
|
||||
return InitSha256_fips(sha);
|
||||
}
|
||||
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)
|
||||
{
|
||||
if (sha256 == NULL) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
return wc_InitSha256_ex(sha256, NULL, INVALID_DEVID);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user