28#include "crypto/psa/riot_ciphers.h"
32#if IS_USED(MODULE_PERIPH_CIPHER_AES_128_CBC)
36#if IS_USED(MODULE_PSA_SECURE_ELEMENT_ATECCX08A)
45 PSA_CRYPTO_DRIVER_DECRYPT,
46 PSA_CRYPTO_DRIVER_ENCRYPT
53#if IS_USED(MODULE_PSA_CIPHER_AES_128_ECB) ||\
54 IS_USED(MODULE_PSA_CIPHER_AES_128_CBC) ||\
58#if IS_USED(MODULE_PSA_CIPHER_AES_192_CBC) || defined(DOXYGEN)
61#if IS_USED(MODULE_PSA_CIPHER_AES_256_CBC) || defined(DOXYGEN)
75 #if IS_USED(MODULE_PSA_SECURE_ELEMENT_ATECCX08A) || defined(DOXYGEN)
92#if IS_USED(MODULE_PSA_SECURE_ELEMENT_ATECCX08A) || defined(DOXYGEN)
134#define PSA_CIPHER_OPERATION_INIT { 0 }
Algorithm definitions for the PSA Crypto API.
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
Default configuration for Microchip CryptoAuth devices.
Common macros and compiler attributes/pragmas configuration.
CryptoCell 310 driver specific AES contexts.
SaSiAesUserContext_t psa_cipher_aes_128_ctx_t
Map driver specific AES context to PSA context.
Structure storing a cipher operation context.
uint8_t iv_required
True if algorithm requires IV.
psa_algorithm_t alg
Operation algorithm.
uint8_t default_iv_length
Default IV length for algorithm.
union psa_cipher_operation_s::cipher_context backend_ctx
Backend specific cipher context.
uint8_t iv_set
True if IV was already set.
Structure containing the secure element specific cipher contexts needed by the application.
psa_encrypt_or_decrypt_t direction
Direction of this cipher operation.
static psa_cipher_operation_t psa_cipher_operation_init(void)
Return an initial value for a cipher operation object.
struct psa_cipher_operation_s psa_cipher_operation_t
The type of the state object for multi-part cipher operations.
#define PSA_CIPHER_OPERATION_INIT
This macro returns a suitable initializer for a cipher operation object of type psa_cipher_operation_...
psa_encrypt_or_decrypt_t
For encrypt-decrypt functions, whether the operation is an encryption or a decryption.
Structure containing the cipher contexts needed by the application.
psa_cipher_aes_192_ctx_t aes_192
AES 192 context.
psa_cipher_aes_256_ctx_t aes_256
AES 256 context.
psa_cipher_aes_128_ctx_t aes_128
AES 128 context.
Union containing cipher contexts for the executing backend.
psa_cipher_context_t cipher_ctx
Cipher context.
psa_se_cipher_context_t se_ctx
SE Cipher context.
Structure containing a driver specific cipher context.
atca_aes_cbc_ctx_t atca_aes_cbc
ATCA AES CBC context.
unsigned dummy
Make the union non-empty even with no supported algorithms.