1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-21 12:40:51 +03:00

Merge pull request #3480 from stevew817/feature/aes-ecb

Added support for AES-ECB to the PSA Crypto implementation
This commit is contained in:
Gilles Peskine
2020-09-14 14:45:14 +02:00
committed by GitHub
7 changed files with 287 additions and 35 deletions

View File

@@ -83,6 +83,8 @@ static inline psa_algorithm_t mbedtls_psa_translate_cipher_mode(
{
switch( mode )
{
case MBEDTLS_MODE_ECB:
return( PSA_ALG_ECB_NO_PADDING );
case MBEDTLS_MODE_GCM:
return( PSA_ALG_AEAD_WITH_TAG_LENGTH( PSA_ALG_GCM, taglen ) );
case MBEDTLS_MODE_CCM: