block_cipher.h
mbedtls/private_access.h
mbedtls/build_info.h
mbedtls/aes.h
mbedtls/aria.h
mbedtls/camellia.h
mbedtls/aes.h
mbedtls/aria.h
block_cipher.h
mbedtls/build_info.h
mbedtls/camellia.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/platform_time.h
mbedtls/platform_util.h
mbedtls/private_access.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
inttypes.h
limits.h
stddef.h
stdint.h
time.h
mbedtls_block_cipher_context_t
mbedtls_block_cipher_id_t
MBEDTLS_BLOCK_CIPHER_ID_NONE
= 0

Unset.

MBEDTLS_BLOCK_CIPHER_ID_AES

The AES cipher.

MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA

The Camellia cipher.

MBEDTLS_BLOCK_CIPHER_ID_ARIA

The Aria cipher.

mbedtls_block_cipher_engine_t
MBEDTLS_BLOCK_CIPHER_ENGINE_LEGACY
= 0
MBEDTLS_BLOCK_CIPHER_ENGINE_PSA

Used internally to indicate whether a context uses legacy or PSA.

Internal use only.

Internal abstraction layer.

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

    #include"mbedtls/private_access.h"

    #include"mbedtls/build_info.h"

    #ifdefined(MBEDTLS_AES_C)
    #include"mbedtls/aes.h"
    #endif
    #ifdefined(MBEDTLS_ARIA_C)
    #include"mbedtls/aria.h"
    #endif
    #ifdefined(MBEDTLS_CAMELLIA_C)
    #include"mbedtls/camellia.h"
    #endif

    #ifdefined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
    #include"psa/crypto_types.h"
    #endif

    #ifdef__cplusplus
    extern"C"{
    #endif

    typedefenum{
    MBEDTLS_BLOCK_CIPHER_ID_NONE=0,
    MBEDTLS_BLOCK_CIPHER_ID_AES,
    MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA,
    MBEDTLS_BLOCK_CIPHER_ID_ARIA,
    }mbedtls_block_cipher_id_t;

    typedefenum{
    MBEDTLS_BLOCK_CIPHER_ENGINE_LEGACY=0,
    MBEDTLS_BLOCK_CIPHER_ENGINE_PSA,
    }mbedtls_block_cipher_engine_t;

    typedefstruct{
    mbedtls_block_cipher_id_tMBEDTLS_PRIVATE(id);
    #ifdefined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
    mbedtls_block_cipher_engine_tMBEDTLS_PRIVATE(engine);
    mbedtls_svc_key_id_tMBEDTLS_PRIVATE(psa_key_id);
    #endif
    union{
    unsigneddummy;/*Maketheunionnon-emptyevenwithnosupportedalgorithms.*/
    #ifdefined(MBEDTLS_AES_C)
    mbedtls_aes_contextMBEDTLS_PRIVATE(aes);
    #endif
    #ifdefined(MBEDTLS_ARIA_C)
    mbedtls_aria_contextMBEDTLS_PRIVATE(aria);
    #endif
    #ifdefined(MBEDTLS_CAMELLIA_C)
    mbedtls_camellia_contextMBEDTLS_PRIVATE(camellia);
    #endif
    }MBEDTLS_PRIVATE(ctx);
    }mbedtls_block_cipher_context_t;

    #ifdef__cplusplus
    }
    #endif

    #endif/*MBEDTLS_BLOCK_CIPHER_H*/