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
commit b1d3f2779b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: