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:
Manuel Pégourié-Gonnard 2022-01-18 09:29:41 +01:00
parent 763641a3f5
commit 24e82ded79

View file

@ -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: