forked from wolfSSL/wolfssl
Fix for test case wc_AesInit
with bad argument. Adds bad arg check for API in FIPS mode.
This commit is contained in:
@@ -235,9 +235,12 @@
|
|||||||
|
|
||||||
int wc_AesInit(Aes* aes, void* h, int i)
|
int wc_AesInit(Aes* aes, void* h, int i)
|
||||||
{
|
{
|
||||||
(void)aes;
|
if (aes == NULL)
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
|
|
||||||
(void)h;
|
(void)h;
|
||||||
(void)i;
|
(void)i;
|
||||||
|
|
||||||
/* FIPS doesn't support:
|
/* FIPS doesn't support:
|
||||||
return AesInit(aes, h, i); */
|
return AesInit(aes, h, i); */
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user