Waleed Elmelegy | ece8c06 | 2025-03-06 13:57:19 +0000 | [diff] [blame^] | 1 | From 11d2d1e770b37d0fd9bd68fc6274c6d5359380d3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Waleed Elmelegy <waleed.elmelegy@arm.com> |
| 3 | Date: Wed, 26 Mar 2025 16:11:55 +0000 |
| 4 | Subject: [PATCH] Update Musca S1/B1 platform configuration |
| 5 | |
| 6 | Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com> |
| 7 | --- |
| 8 | .../nspe/pal_crypto_config.h | 7 +++++++ |
| 9 | .../nspe/pal_crypto_config.h | 15 +++++++++++++++ |
| 10 | 2 files changed, 22 insertions(+) |
| 11 | |
| 12 | 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 |
| 13 | index 9518356..b6e39f8 100644 |
| 14 | --- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_crypto_config.h |
| 15 | +++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_crypto_config.h |
| 16 | @@ -66,6 +66,10 @@ |
| 17 | #endif |
| 18 | #endif |
| 19 | |
| 20 | +/* curves of size <255 are obsolete algorithms, should be disabled. */ |
| 21 | +#undef ARCH_TEST_ECC_CURVE_SECP192R1 |
| 22 | +#undef ARCH_TEST_ECC_CURVE_SECP224R1 |
| 23 | + |
| 24 | /** |
| 25 | * \def ARCH_TEST_AES |
| 26 | * |
| 27 | @@ -282,6 +286,9 @@ |
| 28 | //#define ARCH_TEST_SHA3_384 |
| 29 | //#define ARCH_TEST_SHA3_512 |
| 30 | |
| 31 | +// SHA224 is not in our scope of testing |
| 32 | +#undef ARCH_TEST_SHA224 |
| 33 | + |
| 34 | /** |
| 35 | * \def ARCH_TEST_HKDF |
| 36 | * |
| 37 | 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 |
| 38 | index 5adb08f..13a160d 100644 |
| 39 | --- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_crypto_config.h |
| 40 | +++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_crypto_config.h |
| 41 | @@ -66,6 +66,10 @@ |
| 42 | #endif |
| 43 | #endif |
| 44 | |
| 45 | +/* curves of size <255 are obsolete algorithms, should be disabled. */ |
| 46 | +#undef ARCH_TEST_ECC_CURVE_SECP192R1 |
| 47 | +#undef ARCH_TEST_ECC_CURVE_SECP224R1 |
| 48 | + |
| 49 | /** |
| 50 | * \def ARCH_TEST_AES |
| 51 | * |
| 52 | @@ -282,6 +286,9 @@ |
| 53 | //#define ARCH_TEST_SHA3_384 |
| 54 | //#define ARCH_TEST_SHA3_512 |
| 55 | |
| 56 | +// SHA224 is not in our scope of testing |
| 57 | +#undef ARCH_TEST_SHA224 |
| 58 | + |
| 59 | /** |
| 60 | * \def ARCH_TEST_HKDF |
| 61 | * |
| 62 | @@ -384,6 +391,14 @@ |
| 63 | * Enable ECC support for asymmetric API. |
| 64 | */ |
| 65 | //#define ARCH_TEST_ECC_ASYMMETRIC_API_SUPPORT |
| 66 | + |
| 67 | +/** |
| 68 | + * \def ARCH_TEST_PBKDF2 |
| 69 | + * |
| 70 | + * Enable the Password-based Key derivation functions - 2. |
| 71 | +*/ |
| 72 | +#define ARCH_TEST_PBKDF2 |
| 73 | + |
| 74 | #include "pal_crypto_config_check.h" |
| 75 | |
| 76 | #endif /* _PAL_CRYPTO_CONFIG_H_ */ |
| 77 | -- |
| 78 | 2.25.1 |
| 79 | |