Musca B1: BL2: Fix public key stack corruption
Since thin psa crypto layer in BL2 does not copy the key data while
importing, its contents are corrupted by the following code. Hence
statically allocate key buffer instead.
Signed-off-by: Maulik Patel <maulik.patel@arm.com>
Change-Id: Idc7506b90eb0bc7cb6f4e6146e2db1c009a7e7ac
diff --git a/psa_crypto/CMakeLists.txt b/psa_crypto/CMakeLists.txt
index 37747f5..9e1b262 100644
--- a/psa_crypto/CMakeLists.txt
+++ b/psa_crypto/CMakeLists.txt
@@ -25,3 +25,8 @@
PRIVATE
psa_adac_psa_crypto
)
+
+target_compile_definitions(psa_adac_psa_crypto
+ PRIVATE
+ $<$<BOOL:${PSA_ADAC_USE_STATIC_PUB_KEYS}>:ADAC_STATIC_PUB_KEYS>
+)