blob: b8b0f5e636f0efd6d79854e95191f49385af2324 [file] [log] [blame]
From 11d2d1e770b37d0fd9bd68fc6274c6d5359380d3 Mon Sep 17 00:00:00 2001
From: Waleed Elmelegy <waleed.elmelegy@arm.com>
Date: Wed, 26 Mar 2025 16:11:55 +0000
Subject: [PATCH] Update Musca S1/B1 platform configuration
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
---
.../nspe/pal_crypto_config.h | 7 +++++++
.../nspe/pal_crypto_config.h | 15 +++++++++++++++
2 files changed, 22 insertions(+)
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
index 9518356..b6e39f8 100644
--- 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
@@ -66,6 +66,10 @@
#endif
#endif
+/* curves of size <255 are obsolete algorithms, should be disabled. */
+#undef ARCH_TEST_ECC_CURVE_SECP192R1
+#undef ARCH_TEST_ECC_CURVE_SECP224R1
+
/**
* \def ARCH_TEST_AES
*
@@ -282,6 +286,9 @@
//#define ARCH_TEST_SHA3_384
//#define ARCH_TEST_SHA3_512
+// SHA224 is not in our scope of testing
+#undef ARCH_TEST_SHA224
+
/**
* \def ARCH_TEST_HKDF
*
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
index 5adb08f..13a160d 100644
--- 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
@@ -66,6 +66,10 @@
#endif
#endif
+/* curves of size <255 are obsolete algorithms, should be disabled. */
+#undef ARCH_TEST_ECC_CURVE_SECP192R1
+#undef ARCH_TEST_ECC_CURVE_SECP224R1
+
/**
* \def ARCH_TEST_AES
*
@@ -282,6 +286,9 @@
//#define ARCH_TEST_SHA3_384
//#define ARCH_TEST_SHA3_512
+// SHA224 is not in our scope of testing
+#undef ARCH_TEST_SHA224
+
/**
* \def ARCH_TEST_HKDF
*
@@ -384,6 +391,14 @@
* Enable ECC support for asymmetric API.
*/
//#define ARCH_TEST_ECC_ASYMMETRIC_API_SUPPORT
+
+/**
+ * \def ARCH_TEST_PBKDF2
+ *
+ * Enable the Password-based Key derivation functions - 2.
+*/
+#define ARCH_TEST_PBKDF2
+
#include "pal_crypto_config_check.h"
#endif /* _PAL_CRYPTO_CONFIG_H_ */
--
2.25.1