@@ -3726,8 +3726,8 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
37263726 #if !defined(WOLFSSL_STM32_CUBEMX ) || defined(STM32_HAL_V2 )
37273727 ByteReverseWords (rk , rk , keylen );
37283728 #endif
3729- #if defined(WOLFSSL_AES_CFB ) || defined(WOLFSSL_AES_COUNTER ) || \
3730- defined(WOLFSSL_AES_OFB )
3729+ #if defined(WOLFSSL_AES_COUNTER ) || defined(WOLFSSL_AES_CFB ) || \
3730+ defined(WOLFSSL_AES_OFB ) || defined( WOLFSSL_AES_XTS )
37313731 aes -> left = 0 ;
37323732 #endif
37333733 return wc_AesSetIV (aes , iv );
@@ -3807,8 +3807,8 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
38073807 if (iv )
38083808 XMEMCPY (aes -> reg , iv , AES_BLOCK_SIZE );
38093809
3810- #if defined(WOLFSSL_AES_CFB ) || defined(WOLFSSL_AES_COUNTER ) || \
3811- defined(WOLFSSL_AES_OFB )
3810+ #if defined(WOLFSSL_AES_COUNTER ) || defined(WOLFSSL_AES_CFB ) || \
3811+ defined(WOLFSSL_AES_OFB ) || defined( WOLFSSL_AES_XTS )
38123812 aes -> left = 0 ;
38133813 #endif
38143814
@@ -3838,8 +3838,8 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
38383838 aes -> rounds = keylen /4 + 6 ;
38393839 XMEMCPY (aes -> key , userKey , keylen );
38403840
3841- #if defined(WOLFSSL_AES_CFB ) || defined(WOLFSSL_AES_COUNTER ) || \
3842- defined(WOLFSSL_AES_OFB )
3841+ #if defined(WOLFSSL_AES_COUNTER ) || defined(WOLFSSL_AES_CFB ) || \
3842+ defined(WOLFSSL_AES_OFB ) || defined( WOLFSSL_AES_XTS )
38433843 aes -> left = 0 ;
38443844 #endif
38453845
@@ -3890,8 +3890,8 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
38903890 if (rk == NULL )
38913891 return BAD_FUNC_ARG ;
38923892
3893- #if defined(WOLFSSL_AES_CFB ) || defined(WOLFSSL_AES_COUNTER ) || \
3894- defined(WOLFSSL_AES_OFB )
3893+ #if defined(WOLFSSL_AES_COUNTER ) || defined(WOLFSSL_AES_CFB ) || \
3894+ defined(WOLFSSL_AES_OFB ) || defined( WOLFSSL_AES_XTS )
38953895 aes -> left = 0 ;
38963896 #endif
38973897
@@ -3971,8 +3971,8 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
39713971 XMEMCPY (aes -> key , userKey , keylen );
39723972 ret = nrf51_aes_set_key (userKey );
39733973
3974- #if defined(WOLFSSL_AES_CFB ) || defined(WOLFSSL_AES_COUNTER ) || \
3975- defined(WOLFSSL_AES_OFB )
3974+ #if defined(WOLFSSL_AES_COUNTER ) || defined(WOLFSSL_AES_CFB ) || \
3975+ defined(WOLFSSL_AES_OFB ) || defined( WOLFSSL_AES_XTS )
39763976 aes -> left = 0 ;
39773977 #endif
39783978
@@ -4028,7 +4028,8 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
40284028 aes -> rounds = keylen /4 + 6 ;
40294029
40304030 XMEMCPY (aes -> key , userKey , keylen );
4031- #if defined(WOLFSSL_AES_COUNTER )
4031+ #if defined(WOLFSSL_AES_COUNTER ) || defined(WOLFSSL_AES_CFB ) || \
4032+ defined(WOLFSSL_AES_OFB ) || defined(WOLFSSL_AES_XTS )
40324033 aes -> left = 0 ;
40334034 #endif
40344035 return wc_AesSetIV (aes , iv );
@@ -4520,8 +4521,8 @@ static void AesSetKey_C(Aes* aes, const byte* key, word32 keySz, int dir)
45204521 #endif
45214522 }
45224523
4523- #if defined(WOLFSSL_AES_CFB ) || defined(WOLFSSL_AES_COUNTER ) || \
4524- defined(WOLFSSL_AES_OFB )
4524+ #if defined(WOLFSSL_AES_COUNTER ) || defined(WOLFSSL_AES_CFB ) || \
4525+ defined(WOLFSSL_AES_OFB ) || defined( WOLFSSL_AES_XTS )
45254526 aes -> left = 0 ;
45264527 #endif
45274528
0 commit comments