Skip to content

Commit 5540449

Browse files
douzzerejohnstown
authored andcommitted
wolfcrypt/src/port/arm/armv8-aes.c: add missing implementations of wc_AesCtrSetKey(), and add (void)dir in implementation to silence -Wunused.
1 parent fb91f1c commit 5540449

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

wolfcrypt/src/port/arm/armv8-aes.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,13 @@ int wc_AesCtrEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
14521452
return 0;
14531453
}
14541454

1455+
int wc_AesCtrSetKey(Aes* aes, const byte* key, word32 len,
1456+
const byte* iv, int dir)
1457+
{
1458+
(void)dir;
1459+
return wc_AesSetKey(aes, key, len, iv, AES_ENCRYPTION);
1460+
}
1461+
14551462
#endif /* WOLFSSL_AES_COUNTER */
14561463

14571464
#ifdef HAVE_AESGCM
@@ -4212,6 +4219,13 @@ int wc_AesCtrEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
42124219
return 0;
42134220
}
42144221

4222+
int wc_AesCtrSetKey(Aes* aes, const byte* key, word32 len,
4223+
const byte* iv, int dir)
4224+
{
4225+
(void)dir;
4226+
return wc_AesSetKey(aes, key, len, iv, AES_ENCRYPTION);
4227+
}
4228+
42154229
#endif /* WOLFSSL_AES_COUNTER */
42164230

42174231
#ifdef HAVE_AESGCM
@@ -5723,6 +5737,7 @@ int wc_AesCtrEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
57235737
int wc_AesCtrSetKey(Aes* aes, const byte* key, word32 len,
57245738
const byte* iv, int dir)
57255739
{
5740+
(void)dir;
57265741
return wc_AesSetKey(aes, key, len, iv, AES_ENCRYPTION);
57275742
}
57285743
#endif /* WOLFSSL_AES_COUNTER */

0 commit comments

Comments
 (0)