mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-11 11:27:24 +00:00
ssl_tls.c: Use ETM status only in CBC mode case
Signed-off-by: Ronald Cron <[email protected]>
This commit is contained in:
+3
-3
@@ -7450,9 +7450,9 @@ static int ssl_tls12_populate_transform( mbedtls_ssl_transform *transform,
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ( transform->psa_alg == MBEDTLS_SSL_NULL_CIPHER ||
|
if( ( transform->psa_alg == MBEDTLS_SSL_NULL_CIPHER ) ||
|
||||||
transform->psa_alg == PSA_ALG_CBC_NO_PADDING ) &&
|
( ( transform->psa_alg == PSA_ALG_CBC_NO_PADDING ) &&
|
||||||
transform->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED )
|
( transform->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED ) ) )
|
||||||
/* mbedtls_ct_hmac() requires the key to be exportable */
|
/* mbedtls_ct_hmac() requires the key to be exportable */
|
||||||
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_EXPORT |
|
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_EXPORT |
|
||||||
PSA_KEY_USAGE_VERIFY_HASH );
|
PSA_KEY_USAGE_VERIFY_HASH );
|
||||||
|
|||||||
Reference in New Issue
Block a user