Mbed TLS v3.6.1
block_cipher.h
Go to the documentation of this file.
1 
6 /*
7  * Copyright The Mbed TLS Contributors
8  * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9  */
10 #ifndef MBEDTLS_BLOCK_CIPHER_H
11 #define MBEDTLS_BLOCK_CIPHER_H
12 
13 #include "mbedtls/private_access.h"
14 
15 #include "mbedtls/build_info.h"
16 
17 #if defined(MBEDTLS_AES_C)
18 #include "mbedtls/aes.h"
19 #endif
20 #if defined(MBEDTLS_ARIA_C)
21 #include "mbedtls/aria.h"
22 #endif
23 #if defined(MBEDTLS_CAMELLIA_C)
24 #include "mbedtls/camellia.h"
25 #endif
26 
27 #if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
28 #include "psa/crypto_types.h"
29 #endif
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 typedef enum {
41 
47 typedef enum {
51 
52 typedef struct {
54 #if defined(MBEDTLS_BLOCK_CIPHER_SOME_PSA)
57 #endif
58  union {
59  unsigned dummy; /* Make the union non-empty even with no supported algorithms. */
60 #if defined(MBEDTLS_AES_C)
62 #endif
63 #if defined(MBEDTLS_ARIA_C)
65 #endif
66 #if defined(MBEDTLS_CAMELLIA_C)
68 #endif
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* MBEDTLS_BLOCK_CIPHER_H */
This file contains AES definitions and functions.
ARIA block cipher.
mbedtls_block_cipher_engine_t
Definition: block_cipher.h:47
@ MBEDTLS_BLOCK_CIPHER_ENGINE_LEGACY
Definition: block_cipher.h:48
@ MBEDTLS_BLOCK_CIPHER_ENGINE_PSA
Definition: block_cipher.h:49
mbedtls_block_cipher_id_t
Definition: block_cipher.h:35
@ MBEDTLS_BLOCK_CIPHER_ID_AES
Definition: block_cipher.h:37
@ MBEDTLS_BLOCK_CIPHER_ID_ARIA
Definition: block_cipher.h:39
@ MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA
Definition: block_cipher.h:38
@ MBEDTLS_BLOCK_CIPHER_ID_NONE
Definition: block_cipher.h:36
Camellia block cipher.
PSA cryptography module: type aliases.
psa_key_id_t mbedtls_svc_key_id_t
Definition: crypto_types.h:292
Build-time configuration info.
Macro wrapper for struct's members.
#define MBEDTLS_PRIVATE(member)
The AES context-type definition.
Definition: aes.h:63
The ARIA context-type definition.
Definition: aria.h:52
CAMELLIA context structure.
Definition: camellia.h:41