Add new PSA_HAS_FULL_ECDSA macro for easily signal that PSA has full ECDSA support
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
f84b7d5c21
commit
30c4618970
2 changed files with 9 additions and 2 deletions
|
@ -280,7 +280,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED) && \
|
#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED) && \
|
||||||
( !defined(MBEDTLS_ECDH_C) || !defined(MBEDTLS_ECDSA_C) || \
|
( !defined(MBEDTLS_ECDH_C) || \
|
||||||
|
!(defined(MBEDTLS_ECDSA_C) || defined(PSA_HAS_FULL_ECDSA)) || \
|
||||||
!defined(MBEDTLS_X509_CRT_PARSE_C) )
|
!defined(MBEDTLS_X509_CRT_PARSE_C) )
|
||||||
#error "MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED defined, but not all prerequisites"
|
#error "MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
@ -313,7 +314,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) && \
|
#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) && \
|
||||||
( !defined(MBEDTLS_ECDH_C) || !defined(MBEDTLS_ECDSA_C) || \
|
( !defined(MBEDTLS_ECDH_C) || \
|
||||||
|
!(defined(MBEDTLS_ECDSA_C) || defined(PSA_HAS_FULL_ECDSA)) || \
|
||||||
!defined(MBEDTLS_X509_CRT_PARSE_C) )
|
!defined(MBEDTLS_X509_CRT_PARSE_C) )
|
||||||
#error "MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED defined, but not all prerequisites"
|
#error "MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -308,6 +308,11 @@ extern "C" {
|
||||||
#define PSA_HAVE_SOFT_BLOCK_AEAD 1
|
#define PSA_HAVE_SOFT_BLOCK_AEAD 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(PSA_WANT_ALG_ECDSA) && defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR) && \
|
||||||
|
defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
|
||||||
|
#define PSA_HAS_FULL_ECDSA 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(PSA_WANT_KEY_TYPE_AES)
|
#if defined(PSA_WANT_KEY_TYPE_AES)
|
||||||
#if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_AES)
|
#if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_AES)
|
||||||
#define PSA_HAVE_SOFT_KEY_TYPE_AES 1
|
#define PSA_HAVE_SOFT_KEY_TYPE_AES 1
|
||||||
|
|
Loading…
Reference in a new issue