From 5977bc9e395daa1556688f2004ff596f811a7906 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 23 Sep 2021 17:35:08 +0100 Subject: [PATCH] Add MBEDTLS_PRIVATE to new structs Signed-off-by: Paul Elliott --- include/psa/crypto_builtin_composites.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/psa/crypto_builtin_composites.h b/include/psa/crypto_builtin_composites.h index cdecb2844..8075caf66 100644 --- a/include/psa/crypto_builtin_composites.h +++ b/include/psa/crypto_builtin_composites.h @@ -86,24 +86,24 @@ typedef struct /* Context structure for the Mbed TLS AEAD implementation. */ typedef struct { - psa_algorithm_t alg; - psa_key_type_t key_type; + psa_algorithm_t MBEDTLS_PRIVATE(alg); + psa_key_type_t MBEDTLS_PRIVATE(key_type); - unsigned int is_encrypt : 1; + unsigned int MBEDTLS_PRIVATE(is_encrypt) : 1; - uint8_t tag_length; + uint8_t MBEDTLS_PRIVATE(tag_length); union { unsigned dummy; /* Enable easier initializing of the union. */ #if defined(MBEDTLS_PSA_BUILTIN_ALG_CCM) - mbedtls_ccm_context ccm; + mbedtls_ccm_context MBEDTLS_PRIVATE(ccm); #endif /* MBEDTLS_PSA_BUILTIN_ALG_CCM */ #if defined(MBEDTLS_PSA_BUILTIN_ALG_GCM) - mbedtls_gcm_context gcm; + mbedtls_gcm_context MBEDTLS_PRIVATE(gcm); #endif /* MBEDTLS_PSA_BUILTIN_ALG_GCM */ #if defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305) - mbedtls_chachapoly_context chachapoly; + mbedtls_chachapoly_context MBEDTLS_PRIVATE(chachapoly); #endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */ } ctx;