mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Make PSA crypto mandatory for TLS 1.3
As we want to move to PSA for cryptographic operations let's mandate PSA crypto from the start. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@ -12,9 +12,8 @@ Compile-time: enabling `MBEDTLS_USE_PSA_CRYPTO` requires
|
|||||||
`MBEDTLS_ECP_RESTARTABLE` and
|
`MBEDTLS_ECP_RESTARTABLE` and
|
||||||
`MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER` to be disabled.
|
`MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER` to be disabled.
|
||||||
|
|
||||||
Effect: `MBEDTLS_USE_PSA_CRYPTO` currently has no effect on TLS 1.3 (which is
|
Effect: `MBEDTLS_USE_PSA_CRYPTO` has no effect on TLS 1.3 for which PSA
|
||||||
itself experimental and only partially supported so far): TLS 1.3 always uses
|
cryptography is mandatory.
|
||||||
the legacy APIs even when this option is set.
|
|
||||||
|
|
||||||
Stability: any API that's only available when `MBEDTLS_USE_PSA_CRYPTO` is
|
Stability: any API that's only available when `MBEDTLS_USE_PSA_CRYPTO` is
|
||||||
defined is considered experimental and may change in incompatible ways at any
|
defined is considered experimental and may change in incompatible ways at any
|
||||||
@ -157,11 +156,6 @@ Parts that are not covered yet
|
|||||||
|
|
||||||
This is only a high-level overview, grouped by theme
|
This is only a high-level overview, grouped by theme
|
||||||
|
|
||||||
TLS: 1.3 experimental support
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
No part of the experimental support for TLS 1.3 is covered at the moment.
|
|
||||||
|
|
||||||
TLS: key exchanges / asymmetric crypto
|
TLS: key exchanges / asymmetric crypto
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
|
@ -598,8 +598,10 @@
|
|||||||
#error "MBEDTLS_SSL_PROTO_TLS1_2 defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_PROTO_TLS1_2 defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL) && ( !defined(MBEDTLS_HKDF_C) && \
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL) && \
|
||||||
!defined(MBEDTLS_SHA256_C) && !defined(MBEDTLS_SHA512_C) )
|
( ( !defined(MBEDTLS_HKDF_C) && !defined(MBEDTLS_SHA256_C) && \
|
||||||
|
!defined(MBEDTLS_SHA512_C) ) \
|
||||||
|
|| ( !defined(MBEDTLS_PSA_CRYPTO_C) ) )
|
||||||
#error "MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1531,6 +1531,7 @@ component_test_no_use_psa_crypto_full_cmake_asan() {
|
|||||||
scripts/config.py set MBEDTLS_ECP_RESTARTABLE # not using PSA, so enable restartable ECC
|
scripts/config.py set MBEDTLS_ECP_RESTARTABLE # not using PSA, so enable restartable ECC
|
||||||
scripts/config.py unset MBEDTLS_PSA_CRYPTO_C
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_C
|
||||||
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
||||||
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL
|
||||||
scripts/config.py unset MBEDTLS_PSA_ITS_FILE_C
|
scripts/config.py unset MBEDTLS_PSA_ITS_FILE_C
|
||||||
scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C
|
||||||
scripts/config.py unset MBEDTLS_PSA_CRYPTO_STORAGE_C
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_STORAGE_C
|
||||||
|
Reference in New Issue
Block a user