1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Merge pull request #5000 from mprse/mbedtls_cipher_setup_psa_ECB_2x

Backport 2.x: Fix test gap: mbedtls_cipher_setup_psa() with ECB
This commit is contained in:
Gilles Peskine
2021-10-01 14:49:25 +02:00
committed by GitHub
4 changed files with 107 additions and 3 deletions

View File

@ -59,6 +59,9 @@ static inline psa_key_type_t mbedtls_psa_translate_cipher_type(
case MBEDTLS_CIPHER_AES_128_CBC:
case MBEDTLS_CIPHER_AES_192_CBC:
case MBEDTLS_CIPHER_AES_256_CBC:
case MBEDTLS_CIPHER_AES_128_ECB:
case MBEDTLS_CIPHER_AES_192_ECB:
case MBEDTLS_CIPHER_AES_256_ECB:
return( PSA_KEY_TYPE_AES );
/* ARIA not yet supported in PSA. */