From 842213811d944377f37314f63101d942f5655a2d Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Wed, 25 Sep 2024 12:39:27 +0100 Subject: [PATCH] Fix possible error in initalizing key agreement iop struct Signed-off-by: Waleed Elmelegy --- tf-psa-crypto/include/psa/crypto_struct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf-psa-crypto/include/psa/crypto_struct.h b/tf-psa-crypto/include/psa/crypto_struct.h index 98adb51192..f5241b847f 100644 --- a/tf-psa-crypto/include/psa/crypto_struct.h +++ b/tf-psa-crypto/include/psa/crypto_struct.h @@ -518,7 +518,7 @@ struct psa_key_agreement_iop_s { #if defined(MBEDTLS_PSA_CRYPTO_CLIENT) && !defined(MBEDTLS_PSA_CRYPTO_C) #define PSA_KEY_AGREEMENT_IOP_INIT { 0 } #else -#define PSA_KEY_AGREEMENT_IOP_INIT { 0, { 0 }, 0, { 0 }, 0 } +#define PSA_KEY_AGREEMENT_IOP_INIT { 0, { 0 }, 0, PSA_KEY_ATTRIBUTES_INIT, 0 } #endif static inline struct psa_key_agreement_iop_s