Go to the documentation of this file.
31 #ifndef _ESP32_S2_CRYPTO_CIPHER_H
32 #define _ESP32_S2_CRYPTO_CIPHER_H
38 #ifndef ESP32_S2_CRYPTO_CIPHER_SUPPORT
39 #define ESP32_S2_CRYPTO_CIPHER_SUPPORT DISABLED
40 #elif (ESP32_S2_CRYPTO_CIPHER_SUPPORT != ENABLED && ESP32_S2_CRYPTO_CIPHER_SUPPORT != DISABLED)
41 #error ESP32_S2_CRYPTO_CIPHER_SUPPORT parameter is not valid
45 #define AES_MODE_ENC 0x00000000
46 #define AES_MODE_DEC 0x00000004
47 #define AES_MODE_128_BITS 0x00000000
48 #define AES_MODE_192_BITS 0x00000001
49 #define AES_MODE_256_BITS 0x00000002
52 #define AES_BLOCK_MODE_ECB 0x00000000
53 #define AES_BLOCK_MODE_CBC 0x00000001
54 #define AES_BLOCK_MODE_OFB 0x00000002
55 #define AES_BLOCK_MODE_CTR 0x00000003
56 #define AES_BLOCK_MODE_CFB8 0x00000004
57 #define AES_BLOCK_MODE_CFB128 0x00000005
58 #define AES_BLOCK_MODE_GCM 0x00000006
61 #define AES_ENDIAN_DEFAULT 0x0000003F
void esp32s2AesInit(void)
AES module initialization.
General definitions for cryptographic algorithms.