From 24e82ded79b9ece798c4c666db6fdddd88e9b2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 18 Jan 2022 09:29:41 +0100 Subject: [PATCH] Fix type of temporary variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both functions use int. Using size_t results is a warning from MSVC. Signed-off-by: Manuel Pégourié-Gonnard --- programs/psa/aead_cipher_psa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/psa/aead_cipher_psa.c b/programs/psa/aead_cipher_psa.c index 7afc2b39c..52f33c79d 100644 --- a/programs/psa/aead_cipher_psa.c +++ b/programs/psa/aead_cipher_psa.c @@ -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: