File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
features/mbedtls/targets/TARGET_NUVOTON Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -274,11 +274,8 @@ int mbedtls_aes_crypt_cbc( mbedtls_aes_context *ctx,
274
274
while ( length > 0 ) {
275
275
blockChainLen = (length > MAX_DMA_CHAIN_SIZE ) ? MAX_DMA_CHAIN_SIZE : length ;
276
276
277
- if ( mode == MBEDTLS_AES_ENCRYPT ) {
278
- __nvt_aes_crypt (ctx , input , output , blockChainLen );
279
- } else {
280
- __nvt_aes_crypt (ctx , input , output , blockChainLen );
281
- }
277
+ __nvt_aes_crypt (ctx , input , output , blockChainLen );
278
+
282
279
length -= blockChainLen ;
283
280
input += blockChainLen ;
284
281
output += blockChainLen ;
Original file line number Diff line number Diff line change @@ -274,11 +274,8 @@ int mbedtls_aes_crypt_cbc( mbedtls_aes_context *ctx,
274
274
while ( length > 0 ) {
275
275
blockChainLen = (length > MAX_DMA_CHAIN_SIZE ) ? MAX_DMA_CHAIN_SIZE : length ;
276
276
277
- if ( mode == MBEDTLS_AES_ENCRYPT ) {
278
- __nvt_aes_crypt (ctx , input , output , blockChainLen );
279
- } else {
280
- __nvt_aes_crypt (ctx , input , output , blockChainLen );
281
- }
277
+ __nvt_aes_crypt (ctx , input , output , blockChainLen );
278
+
282
279
length -= blockChainLen ;
283
280
input += blockChainLen ;
284
281
output += blockChainLen ;
You can’t perform that action at this time.
0 commit comments