From efb0107fbe22de6461aab040d0b3714422587ccf Mon Sep 17 00:00:00 2001 From: mohammad1603 Date: Wed, 14 Mar 2018 17:03:52 +0200 Subject: [PATCH] CR fix, remove exposing ECB --- include/psa/crypto.h | 1 - library/psa_crypto.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 73cf7bd27..97819b74f 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -317,7 +317,6 @@ typedef uint32_t psa_algorithm_t; #define PSA_ALG_CFB_BASE ((psa_algorithm_t)0x04000002) #define PSA_ALG_OFB_BASE ((psa_algorithm_t)0x04000003) #define PSA_ALG_XTS_BASE ((psa_algorithm_t)0x04000004) -#define PSA_ALG_ECB_BASE ((psa_algorithm_t)0x04000005) #define PSA_ALG_STREAM_CIPHER ((psa_algorithm_t)0x04800000) #define PSA_ALG_CTR ((psa_algorithm_t)0x04800001) #define PSA_ALG_ARC4 ((psa_algorithm_t)0x04800002) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 37befc0e5..d170505c3 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -885,9 +885,6 @@ static const mbedtls_cipher_info_t *mbedtls_cipher_info_from_psa( case PSA_ALG_STREAM_CIPHER: mode = MBEDTLS_MODE_STREAM; break; - case PSA_ALG_ECB_BASE: - mode = MBEDTLS_MODE_ECB; - break; case PSA_ALG_CBC_BASE: mode = MBEDTLS_MODE_CBC; break;