mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-07 12:57:18 +02:00
Fix type of temporary variable
Both functions use int. Using size_t results is a warning from MSVC. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
@@ -123,7 +123,7 @@ static int cipher_prepare( const char *info,
|
||||
CHK( mbedtls_cipher_setup( ctx,
|
||||
mbedtls_cipher_info_from_type( type ) ) );
|
||||
|
||||
size_t key_len = mbedtls_cipher_get_key_bitlen( ctx );
|
||||
int key_len = mbedtls_cipher_get_key_bitlen( ctx );
|
||||
CHK( mbedtls_cipher_setkey( ctx, key_bytes, key_len, MBEDTLS_ENCRYPT ) );
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user