1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Merge pull request #4996 from mprse/mbedtls_cipher_setup_psa_ECB

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

View File

@ -57,6 +57,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. */