crypto_driver_common.h
stddef.h
stdint.h
crypto_types.h
crypto_values.h
psa/crypto_sizes.h
crypto_builtin_composites.h
crypto_builtin_key_derivation.h
crypto_builtin_primitives.h
crypto_driver_contexts_composites.h
crypto_driver_contexts_key_derivation.h
crypto_driver_contexts_primitives.h
crypto_se_driver.h
mbedtls/build_info.h
mbedtls/check_config.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/private_access.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_driver_common.h
psa/crypto_legacy.h
crypto_platform.h
psa/crypto_sizes.h
crypto_types.h
crypto_values.h
limits.h
stddef.h
stdint.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_composites.h
crypto_builtin_key_derivation.h
crypto_builtin_primitives.h
crypto_driver_common.h
crypto_driver_contexts_composites.h
crypto_driver_contexts_key_derivation.h
crypto_driver_contexts_primitives.h
crypto_se_driver.h
crypto_struct.h
psa_encrypt_or_decrypt_t
PSA_CRYPTO_DRIVER_DECRYPT
PSA_CRYPTO_DRIVER_ENCRYPT

For encrypt-decrypt functions, whether the operation is an encryption or a decryption.

Definitions for all PSA crypto drivers.

This file contains common definitions shared by all PSA crypto drivers. Do not include it directly: instead, include the header file(s) for the type(s) of driver that you are implementing. For example, if you are writing a dynamically registered driver for a secure element, include `psa/crypto_se_driver.h`.

This file is part of the PSA Crypto Driver Model, containing functions for driver developers to implement to enable hardware to be called in a standardized way by a PSA Cryptographic API implementation. The functions comprising the driver model, which driver authors implement, are not intended to be called by application developers.

    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */
    #ifndefPSA_CRYPTO_DRIVER_COMMON_H
    #definePSA_CRYPTO_DRIVER_COMMON_H

    #include<stddef.h>
    #include<stdint.h>

    /*Includetypedefinitions(psa_status_t,psa_algorithm_t,
    *psa_key_type_t,etc.)andmacrostobuildandanalyzevalues
    *ofthesetypes.*/
    #include"crypto_types.h"
    #include"crypto_values.h"
    /*Includesizedefinitionswhichareusedtosizesomearraysinoperation
    *structures.*/
    #include<psa/crypto_sizes.h>

    typedefenum{
    PSA_CRYPTO_DRIVER_DECRYPT,
    PSA_CRYPTO_DRIVER_ENCRYPT
    }psa_encrypt_or_decrypt_t;

    #endif/*PSA_CRYPTO_DRIVER_COMMON_H*/