blob: 306deacbb2c3609b91b1d6a3d1bbcebe0c4efc3b [file] [log] [blame]
Summer Qin7c0d8d32021-12-17 15:43:08 +08001From 95e75d02190282825be4c5e9e73a8c4cc71bb042 Mon Sep 17 00:00:00 2001
2From: Summer Qin <summer.qin@arm.com>
3Date: Fri, 10 Jun 2022 10:13:43 +0800
4Subject: [PATCH 2/2] Disable obsolete algorithms
5
6curves of size <255 are obsolete algorithms, should be disabled.
7
8Signed-off-by: Summer Qin <summer.qin@arm.com>
9---
10 .../targets/tgt_dev_apis_tfm_an521/nspe/pal_crypto_config.h | 3 +++
11 .../targets/tgt_dev_apis_tfm_an524/nspe/pal_crypto_config.h | 3 +++
12 .../targets/tgt_dev_apis_tfm_an539/nspe/pal_crypto_config.h | 3 +++
13 .../targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_crypto_config.h | 3 +++
14 .../targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_crypto_config.h | 3 +++
15 .../targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_crypto_config.h | 3 +++
16 .../targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_crypto_config.h | 3 +++
17 .../targets/tgt_dev_apis_tfm_psoc64/nspe/pal_crypto_config.h | 3 +++
18 .../tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_crypto_config.h | 3 +++
19 9 files changed, 27 insertions(+)
20
21diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_crypto_config.h
22index 2642abd..10ee013 100644
23--- a/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_crypto_config.h
24+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_crypto_config.h
25@@ -65,6 +65,9 @@
26 #define ARCH_TEST_ECC_CURVE_SECP384R1
27 #endif
28 #endif
29+/* curves of size <255 are obsolete algorithms, should be disabled. */
30+#undef ARCH_TEST_ECC_CURVE_SECP192R1
31+#undef ARCH_TEST_ECC_CURVE_SECP224R1
32
33 /**
34 * \def ARCH_TEST_AES
35diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_crypto_config.h
36index 2642abd..10ee013 100644
37--- a/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_crypto_config.h
38+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_crypto_config.h
39@@ -65,6 +65,9 @@
40 #define ARCH_TEST_ECC_CURVE_SECP384R1
41 #endif
42 #endif
43+/* curves of size <255 are obsolete algorithms, should be disabled. */
44+#undef ARCH_TEST_ECC_CURVE_SECP192R1
45+#undef ARCH_TEST_ECC_CURVE_SECP224R1
46
47 /**
48 * \def ARCH_TEST_AES
49diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_crypto_config.h
50index f3a117b..92f73d9 100644
51--- a/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_crypto_config.h
52+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_crypto_config.h
53@@ -65,6 +65,9 @@
54 #define ARCH_TEST_ECC_CURVE_SECP384R1
55 #endif
56 #endif
57+/* curves of size <255 are obsolete algorithms, should be disabled. */
58+#undef ARCH_TEST_ECC_CURVE_SECP192R1
59+#undef ARCH_TEST_ECC_CURVE_SECP224R1
60
61 /**
62 * \def ARCH_TEST_AES
63diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_crypto_config.h
64index 2642abd..10ee013 100644
65--- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_crypto_config.h
66+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_crypto_config.h
67@@ -65,6 +65,9 @@
68 #define ARCH_TEST_ECC_CURVE_SECP384R1
69 #endif
70 #endif
71+/* curves of size <255 are obsolete algorithms, should be disabled. */
72+#undef ARCH_TEST_ECC_CURVE_SECP192R1
73+#undef ARCH_TEST_ECC_CURVE_SECP224R1
74
75 /**
76 * \def ARCH_TEST_AES
77diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_crypto_config.h
78index f3a117b..92f73d9 100644
79--- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_crypto_config.h
80+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_crypto_config.h
81@@ -65,6 +65,9 @@
82 #define ARCH_TEST_ECC_CURVE_SECP384R1
83 #endif
84 #endif
85+/* curves of size <255 are obsolete algorithms, should be disabled. */
86+#undef ARCH_TEST_ECC_CURVE_SECP192R1
87+#undef ARCH_TEST_ECC_CURVE_SECP224R1
88
89 /**
90 * \def ARCH_TEST_AES
91diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_crypto_config.h
92index 2642abd..10ee013 100644
93--- a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_crypto_config.h
94+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_crypto_config.h
95@@ -65,6 +65,9 @@
96 #define ARCH_TEST_ECC_CURVE_SECP384R1
97 #endif
98 #endif
99+/* curves of size <255 are obsolete algorithms, should be disabled. */
100+#undef ARCH_TEST_ECC_CURVE_SECP192R1
101+#undef ARCH_TEST_ECC_CURVE_SECP224R1
102
103 /**
104 * \def ARCH_TEST_AES
105diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_crypto_config.h
106index 2642abd..10ee013 100644
107--- a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_crypto_config.h
108+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_crypto_config.h
109@@ -65,6 +65,9 @@
110 #define ARCH_TEST_ECC_CURVE_SECP384R1
111 #endif
112 #endif
113+/* curves of size <255 are obsolete algorithms, should be disabled. */
114+#undef ARCH_TEST_ECC_CURVE_SECP192R1
115+#undef ARCH_TEST_ECC_CURVE_SECP224R1
116
117 /**
118 * \def ARCH_TEST_AES
119diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_crypto_config.h
120index d90fe31..ca0a6f4 100644
121--- a/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_crypto_config.h
122+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_crypto_config.h
123@@ -66,6 +66,9 @@
124 #define ARCH_TEST_ECC_CURVE_SECP384R1
125 #endif
126 #endif
127+/* curves of size <255 are obsolete algorithms, should be disabled. */
128+#undef ARCH_TEST_ECC_CURVE_SECP192R1
129+#undef ARCH_TEST_ECC_CURVE_SECP224R1
130
131 /**
132 * \def ARCH_TEST_AES
133diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_crypto_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_crypto_config.h
134index 2642abd..10ee013 100644
135--- a/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_crypto_config.h
136+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_crypto_config.h
137@@ -65,6 +65,9 @@
138 #define ARCH_TEST_ECC_CURVE_SECP384R1
139 #endif
140 #endif
141+/* curves of size <255 are obsolete algorithms, should be disabled. */
142+#undef ARCH_TEST_ECC_CURVE_SECP192R1
143+#undef ARCH_TEST_ECC_CURVE_SECP224R1
144
145 /**
146 * \def ARCH_TEST_AES
147--
1482.17.1
149