esp32_s2_crypto_cipher.h File Reference

ESP32-S2 cipher hardware accelerator. More...

#include "core/crypto.h"

Go to the source code of this file.

Macros

#define ESP32_S2_CRYPTO_CIPHER_SUPPORT   DISABLED
 
#define AES_MODE_ENC   0x00000000
 
#define AES_MODE_DEC   0x00000004
 
#define AES_MODE_128_BITS   0x00000000
 
#define AES_MODE_192_BITS   0x00000001
 
#define AES_MODE_256_BITS   0x00000002
 
#define AES_BLOCK_MODE_ECB   0x00000000
 
#define AES_BLOCK_MODE_CBC   0x00000001
 
#define AES_BLOCK_MODE_OFB   0x00000002
 
#define AES_BLOCK_MODE_CTR   0x00000003
 
#define AES_BLOCK_MODE_CFB8   0x00000004
 
#define AES_BLOCK_MODE_CFB128   0x00000005
 
#define AES_BLOCK_MODE_GCM   0x00000006
 
#define AES_ENDIAN_DEFAULT   0x0000003F
 

Functions

void esp32s2AesInit (void)
 AES module initialization. More...
 

Detailed Description

ESP32-S2 cipher hardware accelerator.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneCRYPTO Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file esp32_s2_crypto_cipher.h.

Macro Definition Documentation

◆ AES_BLOCK_MODE_CBC

#define AES_BLOCK_MODE_CBC   0x00000001

Definition at line 53 of file esp32_s2_crypto_cipher.h.

◆ AES_BLOCK_MODE_CFB128

#define AES_BLOCK_MODE_CFB128   0x00000005

Definition at line 57 of file esp32_s2_crypto_cipher.h.

◆ AES_BLOCK_MODE_CFB8

#define AES_BLOCK_MODE_CFB8   0x00000004

Definition at line 56 of file esp32_s2_crypto_cipher.h.

◆ AES_BLOCK_MODE_CTR

#define AES_BLOCK_MODE_CTR   0x00000003

Definition at line 55 of file esp32_s2_crypto_cipher.h.

◆ AES_BLOCK_MODE_ECB

#define AES_BLOCK_MODE_ECB   0x00000000

Definition at line 52 of file esp32_s2_crypto_cipher.h.

◆ AES_BLOCK_MODE_GCM

#define AES_BLOCK_MODE_GCM   0x00000006

Definition at line 58 of file esp32_s2_crypto_cipher.h.

◆ AES_BLOCK_MODE_OFB

#define AES_BLOCK_MODE_OFB   0x00000002

Definition at line 54 of file esp32_s2_crypto_cipher.h.

◆ AES_ENDIAN_DEFAULT

#define AES_ENDIAN_DEFAULT   0x0000003F

Definition at line 61 of file esp32_s2_crypto_cipher.h.

◆ AES_MODE_128_BITS

#define AES_MODE_128_BITS   0x00000000

Definition at line 47 of file esp32_s2_crypto_cipher.h.

◆ AES_MODE_192_BITS

#define AES_MODE_192_BITS   0x00000001

Definition at line 48 of file esp32_s2_crypto_cipher.h.

◆ AES_MODE_256_BITS

#define AES_MODE_256_BITS   0x00000002

Definition at line 49 of file esp32_s2_crypto_cipher.h.

◆ AES_MODE_DEC

#define AES_MODE_DEC   0x00000004

Definition at line 46 of file esp32_s2_crypto_cipher.h.

◆ AES_MODE_ENC

#define AES_MODE_ENC   0x00000000

Definition at line 45 of file esp32_s2_crypto_cipher.h.

◆ ESP32_S2_CRYPTO_CIPHER_SUPPORT

#define ESP32_S2_CRYPTO_CIPHER_SUPPORT   DISABLED

Definition at line 39 of file esp32_s2_crypto_cipher.h.

Function Documentation

◆ esp32s2AesInit()

void esp32s2AesInit ( void  )

AES module initialization.

Definition at line 53 of file esp32_s2_crypto_cipher.c.