33 #ifndef PSA_CRYPTO_BUILTIN_COMPOSITES_H
34 #define PSA_CRYPTO_BUILTIN_COMPOSITES_H
42 #if defined(MBEDTLS_PSA_BUILTIN_ALG_CMAC) || \
43 defined(MBEDTLS_PSA_BUILTIN_ALG_HMAC)
44 #define MBEDTLS_PSA_BUILTIN_MAC
47 #if defined(MBEDTLS_PSA_BUILTIN_ALG_HMAC) || defined(PSA_CRYPTO_DRIVER_TEST)
58 #define MBEDTLS_PSA_HMAC_OPERATION_INIT {0, PSA_HASH_OPERATION_INIT, {0}}
69 #if defined(MBEDTLS_PSA_BUILTIN_ALG_HMAC) || defined(PSA_CRYPTO_DRIVER_TEST)
72 #if defined(MBEDTLS_PSA_BUILTIN_ALG_CMAC) || defined(PSA_CRYPTO_DRIVER_TEST)
78 #define MBEDTLS_PSA_MAC_OPERATION_INIT {0, {0}}
80 #if defined(MBEDTLS_PSA_BUILTIN_ALG_GCM) || \
81 defined(MBEDTLS_PSA_BUILTIN_ALG_CCM) || \
82 defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305)
83 #define MBEDTLS_PSA_BUILTIN_AEAD 1
99 #if defined(MBEDTLS_PSA_BUILTIN_ALG_CCM)
102 #if defined(MBEDTLS_PSA_BUILTIN_ALG_GCM)
105 #if defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305)
113 #define MBEDTLS_PSA_AEAD_OPERATION_INIT {0, 0, 0, 0, {0}}
#define PSA_HMAC_MAX_HASH_BLOCK_SIZE
#define MBEDTLS_PRIVATE(member)
This file contains CMAC definitions and functions.
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
Macro wrapper for struct's memebrs.
uint16_t psa_key_type_t
Encoding of a key type.
Definitions for all PSA crypto drivers.