crypto_builtin_primitives.h
mbedtls/private_access.h
psa/crypto_driver_common.h
mbedtls/md5.h
mbedtls/ripemd160.h
mbedtls/sha1.h
mbedtls/sha256.h
mbedtls/sha512.h
mbedtls/sha3.h
mbedtls/cipher.h
crypto_driver_contexts_primitives.h
mbedtls/build_info.h
mbedtls/check_config.h
mbedtls/cipher.h
mbedtls/config_adjust_legacy_crypto.h
mbedtls/config_adjust_psa_from_legacy.h
mbedtls/config_adjust_psa_superset_legacy.h
mbedtls/config_adjust_ssl.h
mbedtls/config_adjust_x509.h
mbedtls/config_psa.h
mbedtls/mbedtls_config.h
mbedtls/md5.h
mbedtls/platform_time.h
mbedtls/platform_util.h
mbedtls/private_access.h
mbedtls/ripemd160.h
mbedtls/sha1.h
mbedtls/sha256.h
mbedtls/sha3.h
mbedtls/sha512.h
psa/build_info.h
psa/crypto_adjust_auto_enabled.h
psa/crypto_adjust_config_dependencies.h
psa/crypto_adjust_config_key_pair_types.h
psa/crypto_adjust_config_synonyms.h
crypto_builtin_primitives.h
psa/crypto_driver_common.h
psa/crypto_legacy.h
crypto_platform.h
psa/crypto_sizes.h
crypto_types.h
crypto_values.h
inttypes.h
limits.h
stddef.h
stdint.h
time.h
debug.h
net_sockets.h
oid.h
pk.h
pkcs7.h
psa_util.h
ssl.h
ssl_cache.h
ssl_ciphersuites.h
ssl_cookie.h
ssl_ticket.h
x509.h
x509_crl.h
x509_crt.h
x509_csr.h
crypto.h
crypto_builtin_primitives.h
crypto_driver_contexts_primitives.h
crypto_struct.h
mbedtls_psa_hash_operation_t
mbedtls_psa_cipher_operation_t
MBEDTLS_PSA_BUILTIN_HASH
MBEDTLS_PSA_HASH_OPERATION_INIT
{ 0, { 0 } }
MBEDTLS_PSA_BUILTIN_CIPHER
1
MBEDTLS_PSA_CIPHER_OPERATION_INIT
{ 0, 0, 0, { 0 } }

    /*
    *ContextstructuredeclarationoftheMbedTLSsoftware-basedPSAdrivers
    *calledthroughthePSACryptodriverdispatchlayer.
    *Thisfilecontainsthecontextstructuresofthosealgorithmswhichdonot
    *relyonotheralgorithms,i.e.are'primitive'algorithms.
    *
    *\noteThisfilemaynotbeincludeddirectly.Applicationsmust
    *includepsa/crypto.h.
    *
    *\noteThisheaderanditscontentarenotpartoftheMbedTLSAPIand
    *applicationsmustnotdependonit.Itsmainpurposeistodefinethe
    *multi-partstateobjectsoftheMbedTLSsoftware-basedPSAdrivers.The
    *definitionsoftheseobjectsarethenusedbycrypto_struct.htodefinethe
    *implementation-definedtypesofPSAmulti-partstateobjects.
    */
    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */

    #ifndefPSA_CRYPTO_BUILTIN_PRIMITIVES_H
    #definePSA_CRYPTO_BUILTIN_PRIMITIVES_H
    #include"mbedtls/private_access.h"

    #include<psa/crypto_driver_common.h>

    /*
    *Hashmulti-partoperationdefinitions.
    */

    #include"mbedtls/md5.h"
    #include"mbedtls/ripemd160.h"
    #include"mbedtls/sha1.h"
    #include"mbedtls/sha256.h"
    #include"mbedtls/sha512.h"
    #include"mbedtls/sha3.h"

    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_MD5)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_256)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_384)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_512)
    #defineMBEDTLS_PSA_BUILTIN_HASH
    #endif

    typedefstruct{
    psa_algorithm_tMBEDTLS_PRIVATE(alg);
    union{
    unsigneddummy;/*Maketheunionnon-emptyevenwithnosupportedalgorithms.*/
    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_MD5)
    mbedtls_md5_contextmd5;
    #endif
    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160)
    mbedtls_ripemd160_contextripemd160;
    #endif
    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1)
    mbedtls_sha1_contextsha1;
    #endif
    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224)
    mbedtls_sha256_contextsha256;
    #endif
    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384)
    mbedtls_sha512_contextsha512;
    #endif
    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_256)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_384)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_512)
    mbedtls_sha3_contextsha3;
    #endif
    }MBEDTLS_PRIVATE(ctx);
    }mbedtls_psa_hash_operation_t;

    #defineMBEDTLS_PSA_HASH_OPERATION_INIT{0,{0}}

    /*
    *Ciphermulti-partoperationdefinitions.
    */

    #include"mbedtls/cipher.h"

    #ifdefined(MBEDTLS_PSA_BUILTIN_ALG_STREAM_CIPHER)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_CTR)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_CFB)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_OFB)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_CBC_NO_PADDING)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_CBC_PKCS7)||\
    defined(MBEDTLS_PSA_BUILTIN_ALG_CCM_STAR_NO_TAG)
    #defineMBEDTLS_PSA_BUILTIN_CIPHER1
    #endif

    typedefstruct{
    /*ContextstructurefortheMbedTLScipherimplementation.*/
    psa_algorithm_tMBEDTLS_PRIVATE(alg);
    uint8_tMBEDTLS_PRIVATE(iv_length);
    uint8_tMBEDTLS_PRIVATE(block_length);
    union{
    unsignedintMBEDTLS_PRIVATE(dummy);
    mbedtls_cipher_context_tMBEDTLS_PRIVATE(cipher);
    }MBEDTLS_PRIVATE(ctx);
    }mbedtls_psa_cipher_operation_t;

    #defineMBEDTLS_PSA_CIPHER_OPERATION_INIT{0,0,0,{0}}

    #endif/*PSA_CRYPTO_BUILTIN_PRIMITIVES_H*/