TLS 1.3 only have AEAD ciphers, drop the PSA_ALG_IS_AEAD() check in mbedtls_ssl_tls13_get_cipher_key_info()

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2022-05-17 14:42:57 +02:00
parent b818e16b29
commit 0fa8ce3498

View File

@ -1210,10 +1210,8 @@ static int mbedtls_ssl_tls13_get_cipher_key_info(
*key_len = PSA_BITS_TO_BYTES( key_bits );
if( PSA_ALG_IS_AEAD( alg ) )
*iv_len = 12;
else
*iv_len = PSA_CIPHER_IV_LENGTH( key_type, alg );
/* TLS 1.3 only have AEAD ciphers, IV length is unconditionally 12 bytes */
*iv_len = 12;
return 0;
}