mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 13:05:41 +01:00
AES: masked config: remove 176 bytes of zeroing on each AES finalize round
On MBEDTLS_AES_128_BIT_MASKED+FI_COUNTERMEASURES config the rk_mask array was unconditionally zeroed on each dummy finalization round even though it will be zeroed after the loop too. Remove the repeated zeroing to increase overall transfer speed on DTLS session by 17..20% on a Cortex-M4. Signed-off-by: Tero Jääskö <tero.jaasko@arm.com>
This commit is contained in:
parent
0241f81cbc
commit
ada61f05b3
@ -1560,8 +1560,6 @@ int mbedtls_internal_aes_encrypt( mbedtls_aes_context *ctx,
|
||||
{
|
||||
flow_control++;
|
||||
}
|
||||
//Cleanup the masked key
|
||||
mbedtls_platform_memset( rk_masked, 0, sizeof(rk_masked) );
|
||||
#else
|
||||
aes_fround_final( aes_data_ptr->rk_ptr,
|
||||
&aes_data_ptr->xy_values[0],
|
||||
|
Loading…
Reference in New Issue
Block a user