Merge pull request #8345 from mcagriaksoy/branch_issue_8344

Add missing casting size_t to int on ssl_tls13_keys.c
This commit is contained in:
Tom Cosgrove 2023-10-12 18:39:33 +00:00 committed by GitHub
commit 71f2e398bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,
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,
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;