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:
parent
763641a3f5
commit
24e82ded79
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue