Add casting size_t to int

Signed-off-by: Mehmet Cagri Aksoy <mcagriaksoy@yandex.com>
This commit is contained in:
Mehmet Cagri Aksoy 2023-10-11 15:28:06 +02:00
parent 66f9b3f810
commit 56e9011bde

View file

@ -1019,14 +1019,14 @@ int mbedtls_ssl_tls13_populate_transform(
#if !defined(MBEDTLS_USE_PSA_CRYPTO)
if ((ret = mbedtls_cipher_setkey(&transform->cipher_ctx_enc,
(int)key_enc, mbedtls_cipher_info_get_key_bitlen(cipher_info),
key_enc, (int) mbedtls_cipher_info_get_key_bitlen(cipher_info),
MBEDTLS_ENCRYPT)) != 0) {
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_cipher_setkey", ret);
return ret;
}
if ((ret = mbedtls_cipher_setkey(&transform->cipher_ctx_dec,
(int)key_dec, mbedtls_cipher_info_get_key_bitlen(cipher_info),
key_dec, (int) mbedtls_cipher_info_get_key_bitlen(cipher_info),
MBEDTLS_DECRYPT)) != 0) {
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_cipher_setkey", ret);
return ret;