diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 723194418..1f2ca1182 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -238,11 +238,12 @@ static const XGEN_ALIGN byte iv[] = int main(int argc, char** argv) { - (void)argc; - (void)argv; + (void)argc; + (void)argv; #else int benchmark_test(void *args) { + (void)args; #endif wolfCrypt_Init(); diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index c27c55425..a7788c625 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -1512,6 +1512,8 @@ static void wc_AesDecrypt(Aes* aes, const byte* inBlock, byte* outBlock) int ret; byte *rk = (byte*)aes->key; + (void)dir; + if (!((keylen == 16) || (keylen == 24) || (keylen == 32))) return BAD_FUNC_ARG;