From 4fd105c3faa8ba0008770ff749eca0e8f424f81c Mon Sep 17 00:00:00 2001 From: Elena Uziunaite Date: Tue, 27 Aug 2024 11:49:33 +0100 Subject: [PATCH] Introduce PSA_HAVE_ALG_ECDSA_SIGN and PSA_HAVE_ALG_ECDSA_VERIFY Signed-off-by: Elena Uziunaite --- tf-psa-crypto/include/psa/crypto_adjust_config_derived.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tf-psa-crypto/include/psa/crypto_adjust_config_derived.h b/tf-psa-crypto/include/psa/crypto_adjust_config_derived.h index 84b420256a..4c9fb5a6b7 100644 --- a/tf-psa-crypto/include/psa/crypto_adjust_config_derived.h +++ b/tf-psa-crypto/include/psa/crypto_adjust_config_derived.h @@ -24,6 +24,14 @@ #define PSA_HAVE_ALG_SOME_ECDSA #endif +#if defined(PSA_HAVE_ALG_SOME_ECDSA) && defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC) +#define PSA_HAVE_ALG_ECDSA_SIGN +#endif + +#if defined(PSA_HAVE_ALG_SOME_ECDSA) && defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) +#define PSA_HAVE_ALG_ECDSA_VERIFY +#endif + #if defined(PSA_WANT_ALG_JPAKE) #define PSA_WANT_ALG_SOME_PAKE 1 #endif