We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 017ac97 commit 10d4b1dCopy full SHA for 10d4b1d
1 file changed
wolfcrypt/src/aes.c
@@ -4341,7 +4341,6 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
4341
int wc_AesSetKey(Aes* aes, const byte* userKey, word32 keylen,
4342
const byte* iv, int dir)
4343
{
4344
- int ret;
4345
if ((aes == NULL) || (userKey == NULL)) {
4346
return BAD_FUNC_ARG;
4347
}
@@ -4367,7 +4366,7 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
4367
4366
#ifdef WOLF_CRYPTO_CB
4368
if (aes->devId != INVALID_DEVID) {
4369
#ifdef WOLF_CRYPTO_CB_AES_SETKEY
4370
- ret = wc_CryptoCb_AesSetKey(aes, userKey, keylen);
+ int ret = wc_CryptoCb_AesSetKey(aes, userKey, keylen);
4371
if (ret == 0) {
4372
/* Callback succeeded - SE owns the key */
4373
aes->keylen = (int)keylen;
0 commit comments