crypto_types.h
psa/build_info.h
mbedtls/private_access.h
crypto_platform.h
stdint.h
crypto.h
crypto_driver_common.h
crypto_extra.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
psa/crypto_legacy.h
crypto_platform.h
crypto_types.h
limits.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_extra.h
crypto_se_driver.h
crypto_struct.h
crypto_types.h
- psa_status_t
- psa_key_type_t
- psa_ecc_family_t
- psa_dh_family_t
- psa_algorithm_t
- psa_key_lifetime_t
- psa_key_persistence_t
- psa_key_location_t
- psa_key_id_t
- mbedtls_svc_key_id_t
- psa_key_usage_t
- psa_key_attributes_t
- psa_key_derivation_step_t
- psa_custom_key_parameters_t
- psa_key_production_parameters_t

PSA cryptography module: type aliases.

This file may not be included directly. Applications must include psa/crypto.h. Drivers must include the appropriate driver header file.

This file contains portable definitions of integral types for properties of cryptographic keys, designations of cryptographic algorithms, and error codes returned by the library.

This header file does not declare any function.

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

    #ifndefPSA_CRYPTO_TYPES_H
    #definePSA_CRYPTO_TYPES_H

    /*
    *Includethebuild-timeconfigurationinformationheader.Here,wedonot
    *include`"mbedtls/build_info.h"`directlybut`"psa/build_info.h"`,which
    *isbasicallyjustanaliastoit.Thisistoeasethemaintenanceofthe
    *TF-PSA-Cryptorepositorywhichhasadifferentbuildsystemand
    *configuration.
    */
    #include"psa/build_info.h"

    /*DefinetheMBEDTLS_PRIVATEmacro.*/
    #include"mbedtls/private_access.h"

    #ifdefined(MBEDTLS_PSA_CRYPTO_PLATFORM_FILE)
    #includeMBEDTLS_PSA_CRYPTO_PLATFORM_FILE
    #else
    #include"crypto_platform.h"
    #endif

    #include<stdint.h>

    /*If#PSA_SUCCESSisalreadydefined,itmeansthat#psa_status_t
    *isalsodefinedinanexternalheader,sopreventitsmultiple
    *definition.
    */
    #ifndefPSA_SUCCESS
    typedefint32_tpsa_status_t;
    #endif

    typedefuint16_tpsa_key_type_t;

    typedefuint8_tpsa_ecc_family_t;

    typedefuint8_tpsa_dh_family_t;

    typedefuint32_tpsa_algorithm_t;

    typedefuint32_tpsa_key_lifetime_t;

    typedefuint8_tpsa_key_persistence_t;

    typedefuint32_tpsa_key_location_t;

    typedefuint32_tpsa_key_id_t;

    #if!defined(MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER)
    typedefpsa_key_id_tmbedtls_svc_key_id_t;

    #else/*MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER*/
    /*Implementation-specific:TheMbedTLSlibrarycanbebuiltas
    *partofamulti-clientservicethatexposesthePSACryptographyAPIineach
    *clientandencodestheclientidentityinthekeyidentifierargumentof
    *functionssuchaspsa_open_key().
    */
    typedefstruct{
    psa_key_id_tMBEDTLS_PRIVATE(key_id);
    mbedtls_key_owner_id_tMBEDTLS_PRIVATE(owner);
    }mbedtls_svc_key_id_t;

    #endif/*!MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER*/

    typedefuint32_tpsa_key_usage_t;

    typedefstructpsa_key_attributes_spsa_key_attributes_t;

    #ifndef__DOXYGEN_ONLY__
    #ifdefined(MBEDTLS_PSA_CRYPTO_SE_C)
    /*MbedTLSdefinesthistypeincrypto_types.hbecauseitisalso
    *visibletoapplicationsthroughanimplementation-specificextension.
    *ForthePSACryptographyspecification,thistypeisonlyvisible
    *viacrypto_se_driver.h.*/
    typedefuint64_tpsa_key_slot_number_t;
    #endif/*MBEDTLS_PSA_CRYPTO_SE_C*/
    #endif/*!__DOXYGEN_ONLY__*/

    typedefuint16_tpsa_key_derivation_step_t;

    typedefstructpsa_custom_key_parameters_spsa_custom_key_parameters_t;

    typedefstructpsa_key_production_parameters_spsa_key_production_parameters_t;

    #endif/*PSA_CRYPTO_TYPES_H*/