Hi,

Can you share your configuration and compiler (including flags and target)? This isn't happening in any of the configurations we test on our CI, but psa_crypto_core.h doesn't include the correct header directly, and maybe the indirect include that makes it work for us is omitted in some configurations.

Library and test code should define MBEDTLS_ALLOW_PRIVATE_ACCESS, but it's missing in some places. We'll fix that, but it would be good to know what configurations make it actually break.

Best regards,

--
Gilles Peskine
Mbed TLS developer

On 04/05/2023 21:56, S Krishnan, Archanaa via mbed-tls wrote:

Hello,

 

In mbedLS v3.4.0, I came across a build error that there are no members for type and flag in psa_core_keyattributes_t  structure.

 

The following functions in psa_crypto_core.h  access private members type and flag of psa_core_keyattributes_t structure without the MBEDTLS_PRIBATE() private access.

 

Updating to private access for attribute struct members in psa_crypto_core.h fixed the build errors.

 

Regards,
Archanaa