@@ -1930,7 +1930,7 @@ static void AesEncrypt_C(Aes* aes, const byte* inBlock, byte* outBlock,
19301930 word32 t0 , t1 , t2 , t3 ;
19311931 const word32 * rk ;
19321932
1933- #ifdef WC_AES_C_DYNAMIC_FALLBACK
1933+ #ifdef WC_C_DYNAMIC_FALLBACK
19341934 rk = aes -> key_C_fallback ;
19351935#else
19361936 rk = aes -> key ;
@@ -2945,7 +2945,7 @@ static void AesDecrypt_C(Aes* aes, const byte* inBlock, byte* outBlock,
29452945 word32 t0 , t1 , t2 , t3 ;
29462946 const word32 * rk ;
29472947
2948- #ifdef WC_AES_C_DYNAMIC_FALLBACK
2948+ #ifdef WC_C_DYNAMIC_FALLBACK
29492949 rk = aes -> key_C_fallback ;
29502950#else
29512951 rk = aes -> key ;
@@ -4085,7 +4085,7 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
40854085 */
40864086static void AesSetKey_C (Aes * aes , const byte * key , word32 keySz , int dir )
40874087{
4088- #ifdef WC_AES_C_DYNAMIC_FALLBACK
4088+ #ifdef WC_C_DYNAMIC_FALLBACK
40894089 word32 * rk = aes -> key_C_fallback ;
40904090#else
40914091 word32 * rk = aes -> key ;
@@ -4246,7 +4246,7 @@ static void AesSetKey_C(Aes* aes, const byte* key, word32 keySz, int dir)
42464246 if (dir == AES_DECRYPTION ) {
42474247 unsigned int j ;
42484248
4249- #ifdef WC_AES_C_DYNAMIC_FALLBACK
4249+ #ifdef WC_C_DYNAMIC_FALLBACK
42504250 rk = aes -> key_C_fallback ;
42514251#else
42524252 rk = aes -> key ;
@@ -4455,11 +4455,11 @@ static void AesSetKey_C(Aes* aes, const byte* key, word32 keySz, int dir)
44554455 if (ret != 0 )
44564456 return ret ;
44574457
4458- #ifdef WC_AES_C_DYNAMIC_FALLBACK
4458+ #ifdef WC_C_DYNAMIC_FALLBACK
44594459#ifdef NEED_AES_TABLES
44604460 AesSetKey_C (aes , userKey , keylen , dir );
44614461#endif /* NEED_AES_TABLES */
4462- #endif /* WC_AES_C_DYNAMIC_FALLBACK */
4462+ #endif /* WC_C_DYNAMIC_FALLBACK */
44634463
44644464 #ifdef WOLFSSL_AESNI
44654465 aes -> use_aesni = 0 ;
@@ -4488,13 +4488,13 @@ static void AesSetKey_C(Aes* aes, const byte* key, word32 keySz, int dir)
44884488 if (ret == 0 )
44894489 aes -> use_aesni = 1 ;
44904490 else {
4491- #ifdef WC_AES_C_DYNAMIC_FALLBACK
4491+ #ifdef WC_C_DYNAMIC_FALLBACK
44924492 ret = 0 ;
44934493#endif
44944494 }
44954495 return ret ;
44964496 } else {
4497- #ifdef WC_AES_C_DYNAMIC_FALLBACK
4497+ #ifdef WC_C_DYNAMIC_FALLBACK
44984498 return 0 ;
44994499#else
45004500 return ret ;
@@ -4680,7 +4680,7 @@ int wc_AesSetIV(Aes* aes, const byte* iv)
46804680
46814681#ifdef WOLFSSL_AESNI
46824682
4683- #ifdef WC_AES_C_DYNAMIC_FALLBACK
4683+ #ifdef WC_C_DYNAMIC_FALLBACK
46844684
46854685#define VECTOR_REGISTERS_PUSH { \
46864686 int orig_use_aesni = aes->use_aesni; \
@@ -12369,7 +12369,7 @@ int wc_AesXtsSetKeyNoInit(XtsAes* aes, const byte* key, word32 len, int dir)
1236912369
1237012370#ifdef WOLFSSL_AESNI
1237112371 if (ret == 0 ) {
12372- /* With WC_AES_C_DYNAMIC_FALLBACK , the main and tweak keys could have
12372+ /* With WC_C_DYNAMIC_FALLBACK , the main and tweak keys could have
1237312373 * conflicting _aesni status, but the AES-XTS asm implementations need
1237412374 * them to all be AESNI. If any aren't, disable AESNI on all.
1237512375 */
@@ -12382,7 +12382,7 @@ int wc_AesXtsSetKeyNoInit(XtsAes* aes, const byte* key, word32 len, int dir)
1238212382 (dir == AES_ENCRYPTION_AND_DECRYPTION ))
1238312383 && (aes -> aes_decrypt .use_aesni != aes -> tweak .use_aesni )))
1238412384 {
12385- #ifdef WC_AES_C_DYNAMIC_FALLBACK
12385+ #ifdef WC_C_DYNAMIC_FALLBACK
1238612386 aes -> aes .use_aesni = 0 ;
1238712387 aes -> aes_decrypt .use_aesni = 0 ;
1238812388 aes -> tweak .use_aesni = 0 ;
@@ -12392,7 +12392,7 @@ int wc_AesXtsSetKeyNoInit(XtsAes* aes, const byte* key, word32 len, int dir)
1239212392 }
1239312393 #else /* !WC_AES_XTS_SUPPORT_SIMULTANEOUS_ENC_AND_DEC_KEYS */
1239412394 if (aes -> aes .use_aesni != aes -> tweak .use_aesni ) {
12395- #ifdef WC_AES_C_DYNAMIC_FALLBACK
12395+ #ifdef WC_C_DYNAMIC_FALLBACK
1239612396 aes -> aes .use_aesni = 0 ;
1239712397 aes -> tweak .use_aesni = 0 ;
1239812398 #else
0 commit comments