mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-04 15:39:53 +00:00
psa_crypto.c: fix warning on windows compiler
Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
1dfd1224dc
commit
c6e4c512af
@ -4911,7 +4911,7 @@ static psa_status_t psa_generate_derived_ecc_key_helper(
|
|||||||
* (8 * ceiling(m/8) - m) bits of the first byte in
|
* (8 * ceiling(m/8) - m) bits of the first byte in
|
||||||
* the string to zero.
|
* the string to zero.
|
||||||
*/
|
*/
|
||||||
uint8_t clear_bit_count = ( 8 * m_bytes - m );
|
uint8_t clear_bit_count = (uint8_t) ( 8 * m_bytes - m );
|
||||||
uint8_t clear_bit_mask = ( ( 1 << clear_bit_count ) - 1 );
|
uint8_t clear_bit_mask = ( ( 1 << clear_bit_count ) - 1 );
|
||||||
clear_bit_mask = ~( clear_bit_mask << ( 8 - clear_bit_count ) );
|
clear_bit_mask = ~( clear_bit_mask << ( 8 - clear_bit_count ) );
|
||||||
*data[0] = ( *data[0] & clear_bit_mask );
|
*data[0] = ( *data[0] & clear_bit_mask );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user