[NUC472/M487] Remove superfluous code in AES alter.

pull/4925/head
ccli8 2017-11-20 09:17:52 +08:00
parent 116b14aa84
commit 7d92550d11
2 changed files with 4 additions and 10 deletions

View File

@ -274,11 +274,8 @@ int mbedtls_aes_crypt_cbc( mbedtls_aes_context *ctx,
while( length > 0 ) {
blockChainLen = (length > MAX_DMA_CHAIN_SIZE) ? MAX_DMA_CHAIN_SIZE : length;
if( mode == MBEDTLS_AES_ENCRYPT ) {
__nvt_aes_crypt(ctx, input, output, blockChainLen);
} else {
__nvt_aes_crypt(ctx, input, output, blockChainLen);
}
__nvt_aes_crypt(ctx, input, output, blockChainLen);
length -= blockChainLen;
input += blockChainLen;
output += blockChainLen;

View File

@ -274,11 +274,8 @@ int mbedtls_aes_crypt_cbc( mbedtls_aes_context *ctx,
while( length > 0 ) {
blockChainLen = (length > MAX_DMA_CHAIN_SIZE) ? MAX_DMA_CHAIN_SIZE : length;
if( mode == MBEDTLS_AES_ENCRYPT ) {
__nvt_aes_crypt(ctx, input, output, blockChainLen);
} else {
__nvt_aes_crypt(ctx, input, output, blockChainLen);
}
__nvt_aes_crypt(ctx, input, output, blockChainLen);
length -= blockChainLen;
input += blockChainLen;
output += blockChainLen;