Summer Qin | 2e9fe86 | 2022-06-17 15:58:16 +0800 | [diff] [blame] | 1 | From 534d847765c669f307c93b03384bad7e1cb919b3 Mon Sep 17 00:00:00 2001 |
Summer Qin | 7c0d8d3 | 2021-12-17 15:43:08 +0800 | [diff] [blame] | 2 | From: Summer Qin <summer.qin@arm.com> |
| 3 | Date: Fri, 10 Jun 2022 10:13:43 +0800 |
Summer Qin | 2e9fe86 | 2022-06-17 15:58:16 +0800 | [diff] [blame] | 4 | Subject: [PATCH 2/3] Disable obsolete algorithms |
Summer Qin | 7c0d8d3 | 2021-12-17 15:43:08 +0800 | [diff] [blame] | 5 | |
| 6 | curves of size <255 are obsolete algorithms, should be disabled. |
| 7 | |
| 8 | Signed-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 | |
| 21 | diff --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 |
| 22 | index 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 |
| 35 | diff --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 |
| 36 | index 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 |
| 49 | diff --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 |
| 50 | index 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 |
| 63 | diff --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 |
| 64 | index 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 |
| 77 | diff --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 |
| 78 | index 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 |
| 91 | diff --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 |
| 92 | index 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 |
| 105 | diff --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 |
| 106 | index 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 |
| 119 | diff --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 |
| 120 | index 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 |
| 133 | diff --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 |
| 134 | index 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 | -- |
| 148 | 2.17.1 |
| 149 | |