From 846f021de291c105c18031fa5d5c466917cb3cad Mon Sep 17 00:00:00 2001 From: Mateusz Starzyk Date: Wed, 19 May 2021 19:44:07 +0200 Subject: [PATCH] Run MBEDTLS_PRIVATE wrapping script on the library. Signed-off-by: Mateusz Starzyk --- include/mbedtls/aes.h | 11 +- include/mbedtls/arc4.h | 7 +- include/mbedtls/aria.h | 5 +- include/mbedtls/asn1.h | 25 +- include/mbedtls/bignum.h | 7 +- include/mbedtls/blowfish.h | 5 +- include/mbedtls/camellia.h | 5 +- include/mbedtls/ccm.h | 3 +- include/mbedtls/chacha20.h | 7 +- include/mbedtls/chachapoly.h | 13 +- include/mbedtls/cipher.h | 73 +++--- include/mbedtls/cmac.h | 7 +- include/mbedtls/ctr_drbg.h | 19 +- include/mbedtls/des.h | 5 +- include/mbedtls/dhm.h | 23 +- include/mbedtls/ecdh.h | 19 +- include/mbedtls/ecjpake.h | 25 +- include/mbedtls/ecp.h | 51 ++-- include/mbedtls/entropy.h | 23 +- include/mbedtls/gcm.h | 19 +- include/mbedtls/hmac_drbg.h | 19 +- include/mbedtls/md.h | 7 +- include/mbedtls/md2.h | 9 +- include/mbedtls/md4.h | 7 +- include/mbedtls/md5.h | 7 +- include/mbedtls/net_sockets.h | 3 +- include/mbedtls/nist_kw.h | 3 +- include/mbedtls/oid.h | 9 +- include/mbedtls/pem.h | 7 +- include/mbedtls/pk.h | 15 +- include/mbedtls/platform.h | 3 +- include/mbedtls/poly1305.h | 11 +- include/mbedtls/psa_util.h | 3 +- include/mbedtls/ripemd160.h | 7 +- include/mbedtls/rsa.h | 37 +-- include/mbedtls/sha1.h | 7 +- include/mbedtls/sha256.h | 9 +- include/mbedtls/sha512.h | 11 +- include/mbedtls/ssl.h | 327 ++++++++++++------------ include/mbedtls/ssl_cache.h | 21 +- include/mbedtls/ssl_ciphersuites.h | 17 +- include/mbedtls/ssl_cookie.h | 7 +- include/mbedtls/ssl_ticket.h | 19 +- include/mbedtls/threading.h | 5 +- include/mbedtls/timing.h | 7 +- include/mbedtls/x509.h | 5 +- include/mbedtls/x509_crl.h | 43 ++-- include/mbedtls/x509_crt.h | 117 ++++----- include/mbedtls/x509_csr.h | 31 +-- include/mbedtls/xtea.h | 3 +- include/psa/crypto_builtin_composites.h | 15 +- include/psa/crypto_builtin_primitives.h | 29 ++- include/psa/crypto_extra.h | 29 ++- include/psa/crypto_se_driver.h | 91 +++---- include/psa/crypto_struct.h | 155 +++++------ 55 files changed, 751 insertions(+), 696 deletions(-) diff --git a/include/mbedtls/aes.h b/include/mbedtls/aes.h index da741c8e8..e23b9ca94 100644 --- a/include/mbedtls/aes.h +++ b/include/mbedtls/aes.h @@ -39,6 +39,7 @@ #ifndef MBEDTLS_AES_H #define MBEDTLS_AES_H +#include "mbedtls/private_access.h" #if !defined(MBEDTLS_CONFIG_FILE) #include "mbedtls/config.h" @@ -78,9 +79,9 @@ extern "C" { */ typedef struct mbedtls_aes_context { - int nr; /*!< The number of rounds. */ - uint32_t *rk; /*!< AES round keys. */ - uint32_t buf[68]; /*!< Unaligned data buffer. This buffer can + int MBEDTLS_PRIVATE(nr); /*!< The number of rounds. */ + uint32_t *MBEDTLS_PRIVATE(rk); /*!< AES round keys. */ + uint32_t MBEDTLS_PRIVATE(buf)[68]; /*!< Unaligned data buffer. This buffer can hold 32 extra Bytes, which can be used for one of the following purposes: