new file mode 100644
@@ -0,0 +1,40 @@
+From 8802bad31a37ded724cf157e49b6491226654d35 Mon Sep 17 00:00:00 2001
+From: Ali Can Ozaslan <ali.oezaslan@arm.com>
+Date: Tue, 29 Apr 2025 07:52:14 +0000
+Subject: [PATCH] Align PSA Crypto structs with TF-Mv2.1.1
+
+The psa_client_key_attributes_s struct had to be aligned with the
+psa_key_attributes_s struct in TF-M.
+
+Change-Id: Ia3b5e8f313bd79a321dda6a61357c1a5e5a17bc2
+Signed-off-by: Ali Can Ozaslan <ali.oezaslan@arm.com>
+Signed-off-by: Musa Antike <musa.antike@arm.com>
+Signed-off-by: Frazer Carsley <frazer.carsley@arm.com>
+
+Upstream-Status: Backport [8802bad31a37ded724cf157e49b6491226654d35 on integration branch]
+---
+ components/service/crypto/include/psa/crypto_client_struct.h | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/components/service/crypto/include/psa/crypto_client_struct.h b/components/service/crypto/include/psa/crypto_client_struct.h
+index 7e907faa..db2f9161 100644
+--- a/components/service/crypto/include/psa/crypto_client_struct.h
++++ b/components/service/crypto/include/psa/crypto_client_struct.h
+@@ -1,5 +1,5 @@
+ /*
+- * Copyright (c) 2020-2023, Arm Limited. All rights reserved.
++ * Copyright (c) 2020-2025, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+@@ -38,7 +38,6 @@ struct psa_client_key_attributes_s
+ uint32_t alg;
+ uint32_t alg2;
+ uint32_t id;
+- int32_t owner_id;
+ };
+
+ #define PSA_CLIENT_KEY_ATTRIBUTES_INIT {0}
+--
+2.43.0
+
@@ -14,7 +14,9 @@ SRC_URI:append:corstone1000 = " \
file://0010-Revert-Load-and-store-UEFI-variable-index-in-chunks.patch \
file://0011-Remove-PLATFORM_HAS_ATTEST_PK-define-from-IAT-test.patch \
file://0012-psa-crypto-fix-AEAD-block-cypher-support.patch \
+ file://0013-Align-PSA-Crypto-structs-with-TF-Mv2.1.1.patch \
"
+
# The patches above introduce errors with GCC 14.1, silence them for now
CFLAGS:append:corstone1000 = " -Wno-int-conversion -Wno-implicit-function-declaration"
Re-adds a patch aligning the Trusted Services PSA Crypto structure with its equivalent definition in TF-M v2.1.1. The patch was previously removed during the upgrade to Trusted Services v1.2, as it was believed to be included in that version. However, the alignment is still required to maintain consistency with TF-M v2.1.1. Signed-off-by: Frazer Carsley <frazer.carsley@arm.com> --- ...n-PSA-Crypto-structs-with-TF-Mv2.1.1.patch | 40 +++++++++++++++++++ .../trusted-services/ts-arm-platforms.inc | 2 + 2 files changed, 42 insertions(+) create mode 100644 meta-arm-bsp/recipes-security/trusted-services/corstone1000/0013-Align-PSA-Crypto-structs-with-TF-Mv2.1.1.patch