From 759994aa3b1ad1e54ef3a998d0685108fec6d27c Mon Sep 17 00:00:00 2001 From: Leo Yan Date: Thu, 4 Jul 2024 12:38:26 +0100 Subject: [PATCH] fix(arm): correct RSE_CRYPTO_EXPORT_PUBLIC_KEY_SID The RSE_CRYPTO_EXPORT_PUBLIC_KEY_SID macro does not match the definition in RSE. A paired macro, TFM_CRYPTO_EXPORT_PUBLIC_KEY, in the RSE's header (located in interface/include/tfm_crypto_defs.h) is defined as 0x206. This causes the TF-A test PLATFORM_TEST=rse-rotpk to fail. Correct the definition of RSE_CRYPTO_EXPORT_PUBLIC_KEY_SID to make the test pass. Change-Id: I0bc24ed6dd23f2718e1edea5ec464545dab06983 Signed-off-by: Leo Yan --- include/lib/psa/rse_crypto_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lib/psa/rse_crypto_defs.h b/include/lib/psa/rse_crypto_defs.h index 44936b829..b94664fb6 100644 --- a/include/lib/psa/rse_crypto_defs.h +++ b/include/lib/psa/rse_crypto_defs.h @@ -16,7 +16,7 @@ * to the corresponding API implementation in the Crypto service backend. * */ -#define RSE_CRYPTO_EXPORT_PUBLIC_KEY_SID (uint16_t)(0x701) +#define RSE_CRYPTO_EXPORT_PUBLIC_KEY_SID (uint16_t)(0x206) /* * The persistent key identifiers for RSE builtin keys.