mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-21 03:37:49 +00:00
Use condition for not sensitive data
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
3c38b6e9e1
commit
150bdee126
|
@ -589,9 +589,8 @@ int mbedtls_cf_rsaes_pkcs1_v15_unpadding( int mode,
|
||||||
size_t plaintext_size = 0;
|
size_t plaintext_size = 0;
|
||||||
unsigned output_too_large;
|
unsigned output_too_large;
|
||||||
|
|
||||||
plaintext_max_size = mbedtls_cf_size_if( output_max_len > ilen - 11,
|
plaintext_max_size = ( output_max_len > ilen - 11 ) ? ilen - 11
|
||||||
ilen - 11,
|
: output_max_len;
|
||||||
output_max_len );
|
|
||||||
|
|
||||||
/* Check and get padding length in constant time and constant
|
/* Check and get padding length in constant time and constant
|
||||||
* memory trace. The first byte must be 0. */
|
* memory trace. The first byte must be 0. */
|
||||||
|
|
Loading…
Reference in a new issue