From 9958ff6e9687d78ec37c0196de701f6c9f90379d Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Wed, 20 Nov 2024 11:47:13 +0000 Subject: [PATCH] Add PSA iop export public-key struct members Signed-off-by: Waleed Elmelegy --- tf-psa-crypto/include/psa/crypto_struct.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tf-psa-crypto/include/psa/crypto_struct.h b/tf-psa-crypto/include/psa/crypto_struct.h index 09f4c18175..d0300da004 100644 --- a/tf-psa-crypto/include/psa/crypto_struct.h +++ b/tf-psa-crypto/include/psa/crypto_struct.h @@ -584,15 +584,20 @@ struct psa_export_public_key_iop_s { * any driver (i.e. none of the driver contexts are active). */ unsigned int MBEDTLS_PRIVATE(id); + mbedtls_psa_export_public_key_iop_operation_t MBEDTLS_PRIVATE(ctx); + unsigned int MBEDTLS_PRIVATE(error_occurred) : 1; + uint32_t MBEDTLS_PRIVATE(num_ops); #endif }; + #if defined(MBEDTLS_PSA_CRYPTO_CLIENT) && !defined(MBEDTLS_PSA_CRYPTO_C) #define PSA_EXPORT_PUBLIC_KEY_IOP_INIT { 0 } #else -#define PSA_EXPORT_PUBLIC_KEY_IOP_INIT { 0 } +#define PSA_EXPORT_PUBLIC_KEY_IOP_INIT { 0, MBEDTLS_PSA_EXPORT_PUBLIC_KEY_IOP_INIT, 0, 0 } #endif -static inline struct psa_export_public_key_iop_s psa_export_public_key_iop_init(void) +static inline struct psa_export_public_key_iop_s +psa_export_public_key_iop_init(void) { const struct psa_export_public_key_iop_s v = PSA_EXPORT_PUBLIC_KEY_IOP_INIT;