mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 12:11:11 +00:00
CR fix, remove exposing ECB
This commit is contained in:
parent
990a18c2f0
commit
efb0107fbe
|
@ -317,7 +317,6 @@ typedef uint32_t psa_algorithm_t;
|
||||||
#define PSA_ALG_CFB_BASE ((psa_algorithm_t)0x04000002)
|
#define PSA_ALG_CFB_BASE ((psa_algorithm_t)0x04000002)
|
||||||
#define PSA_ALG_OFB_BASE ((psa_algorithm_t)0x04000003)
|
#define PSA_ALG_OFB_BASE ((psa_algorithm_t)0x04000003)
|
||||||
#define PSA_ALG_XTS_BASE ((psa_algorithm_t)0x04000004)
|
#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_STREAM_CIPHER ((psa_algorithm_t)0x04800000)
|
||||||
#define PSA_ALG_CTR ((psa_algorithm_t)0x04800001)
|
#define PSA_ALG_CTR ((psa_algorithm_t)0x04800001)
|
||||||
#define PSA_ALG_ARC4 ((psa_algorithm_t)0x04800002)
|
#define PSA_ALG_ARC4 ((psa_algorithm_t)0x04800002)
|
||||||
|
|
|
@ -885,9 +885,6 @@ static const mbedtls_cipher_info_t *mbedtls_cipher_info_from_psa(
|
||||||
case PSA_ALG_STREAM_CIPHER:
|
case PSA_ALG_STREAM_CIPHER:
|
||||||
mode = MBEDTLS_MODE_STREAM;
|
mode = MBEDTLS_MODE_STREAM;
|
||||||
break;
|
break;
|
||||||
case PSA_ALG_ECB_BASE:
|
|
||||||
mode = MBEDTLS_MODE_ECB;
|
|
||||||
break;
|
|
||||||
case PSA_ALG_CBC_BASE:
|
case PSA_ALG_CBC_BASE:
|
||||||
mode = MBEDTLS_MODE_CBC;
|
mode = MBEDTLS_MODE_CBC;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue