From 20a8c4305a947fc7e657f52f7f8ee50ea3629269 Mon Sep 17 00:00:00 2001
From: David Brown <david.brown@linaro.org>
Date: Fri, 19 Feb 2021 14:12:27 -0700
Subject: [PATCH] Define PSA_WANT definitions for all ECC curves

Mirror the default non-PSA configuration by enabling all supported ECC
curves.

Signed-off-by: David Brown <david.brown@linaro.org>
---
 include/psa/crypto_config.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/psa/crypto_config.h b/include/psa/crypto_config.h
index 773e1711d..8fc2c83f0 100644
--- a/include/psa/crypto_config.h
+++ b/include/psa/crypto_config.h
@@ -80,6 +80,20 @@
 #define PSA_WANT_ALG_TLS12_PSK_TO_MS            1
 #define PSA_WANT_ALG_XTS                        1
 
+#define PSA_WANT_ECC_BP256R1                    1
+#define PSA_WANT_ECC_BP384R1                    1
+#define PSA_WANT_ECC_BP512R1                    1
+#define PSA_WANT_ECC_CURVE25519                 1
+#define PSA_WANT_ECC_CURVE448                   1
+#define PSA_WANT_ECC_SECP192K1                  1
+#define PSA_WANT_ECC_SECP192R1                  1
+#define PSA_WANT_ECC_SECP224K1                  1
+#define PSA_WANT_ECC_SECP224R1                  1
+#define PSA_WANT_ECC_SECP256K1                  1
+#define PSA_WANT_ECC_SECP256R1                  1
+#define PSA_WANT_ECC_SECP384R1                  1
+#define PSA_WANT_ECC_SECP521R1                  1
+
 #define PSA_WANT_KEY_TYPE_DERIVE                1
 #define PSA_WANT_KEY_TYPE_HMAC                  1
 #define PSA_WANT_KEY_TYPE_AES                   1