STM32MP2 cipher hardware accelerator. More...
#include "core/crypto.h"
Go to the source code of this file.
Macros | |
#define | STM32MP2XX_CRYPTO_CIPHER_SUPPORT DISABLED |
#define | CRYP_CR_GCM_CCMPH_INIT 0 |
#define | CRYP_CR_GCM_CCMPH_HEADER CRYP_CR_GCM_CCMPH_0 |
#define | CRYP_CR_GCM_CCMPH_PAYLOAD CRYP_CR_GCM_CCMPH_1 |
#define | CRYP_CR_GCM_CCMPH_FINAL (CRYP_CR_GCM_CCMPH_1 | CRYP_CR_GCM_CCMPH_0) |
#define | CRYP_CR_KEYSIZE_128B 0 |
#define | CRYP_CR_KEYSIZE_192B CRYP_CR_KEYSIZE_0 |
#define | CRYP_CR_KEYSIZE_256B CRYP_CR_KEYSIZE_1 |
#define | CRYP_CR_DATATYPE_32B 0 |
#define | CRYP_CR_DATATYPE_16B CRYP_CR_DATATYPE_0 |
#define | CRYP_CR_DATATYPE_8B CRYP_CR_DATATYPE_1 |
#define | CRYP_CR_DATATYPE_1B (CRYP_CR_DATATYPE_1 | CRYP_CR_DATATYPE_0) |
#define | CRYP_CR_ALGOMODE_TDES_ECB 0 |
#define | CRYP_CR_ALGOMODE_TDES_CBC CRYP_CR_ALGOMODE_0 |
#define | CRYP_CR_ALGOMODE_DES_ECB CRYP_CR_ALGOMODE_1 |
#define | CRYP_CR_ALGOMODE_DES_CBC (CRYP_CR_ALGOMODE_1 | CRYP_CR_ALGOMODE_0) |
#define | CRYP_CR_ALGOMODE_AES_ECB CRYP_CR_ALGOMODE_2 |
#define | CRYP_CR_ALGOMODE_AES_CBC (CRYP_CR_ALGOMODE_2 | CRYP_CR_ALGOMODE_0) |
#define | CRYP_CR_ALGOMODE_AES_CTR (CRYP_CR_ALGOMODE_2 | CRYP_CR_ALGOMODE_1) |
#define | CRYP_CR_ALGOMODE_AES_KEY (CRYP_CR_ALGOMODE_2 | CRYP_CR_ALGOMODE_1 | CRYP_CR_ALGOMODE_0) |
#define | CRYP_CR_ALGOMODE_AES_GCM CRYP_CR_ALGOMODE_3 |
#define | CRYP_CR_ALGOMODE_AES_CCM (CRYP_CR_ALGOMODE_3 | CRYP_CR_ALGOMODE_0) |
Functions | |
error_t | crypInit (void) |
CRYP module initialization. More... | |
Detailed Description
STM32MP2 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.
- Version
- 2.4.4
Definition in file stm32mp2xx_crypto_cipher.h.
Macro Definition Documentation
◆ CRYP_CR_ALGOMODE_AES_CBC
#define CRYP_CR_ALGOMODE_AES_CBC (CRYP_CR_ALGOMODE_2 | CRYP_CR_ALGOMODE_0) |
Definition at line 67 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_AES_CCM
#define CRYP_CR_ALGOMODE_AES_CCM (CRYP_CR_ALGOMODE_3 | CRYP_CR_ALGOMODE_0) |
Definition at line 71 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_AES_CTR
#define CRYP_CR_ALGOMODE_AES_CTR (CRYP_CR_ALGOMODE_2 | CRYP_CR_ALGOMODE_1) |
Definition at line 68 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_AES_ECB
#define CRYP_CR_ALGOMODE_AES_ECB CRYP_CR_ALGOMODE_2 |
Definition at line 66 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_AES_GCM
#define CRYP_CR_ALGOMODE_AES_GCM CRYP_CR_ALGOMODE_3 |
Definition at line 70 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_AES_KEY
#define CRYP_CR_ALGOMODE_AES_KEY (CRYP_CR_ALGOMODE_2 | CRYP_CR_ALGOMODE_1 | CRYP_CR_ALGOMODE_0) |
Definition at line 69 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_DES_CBC
#define CRYP_CR_ALGOMODE_DES_CBC (CRYP_CR_ALGOMODE_1 | CRYP_CR_ALGOMODE_0) |
Definition at line 65 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_DES_ECB
#define CRYP_CR_ALGOMODE_DES_ECB CRYP_CR_ALGOMODE_1 |
Definition at line 64 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_TDES_CBC
#define CRYP_CR_ALGOMODE_TDES_CBC CRYP_CR_ALGOMODE_0 |
Definition at line 63 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_ALGOMODE_TDES_ECB
#define CRYP_CR_ALGOMODE_TDES_ECB 0 |
Definition at line 62 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_DATATYPE_16B
#define CRYP_CR_DATATYPE_16B CRYP_CR_DATATYPE_0 |
Definition at line 57 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_DATATYPE_1B
#define CRYP_CR_DATATYPE_1B (CRYP_CR_DATATYPE_1 | CRYP_CR_DATATYPE_0) |
Definition at line 59 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_DATATYPE_32B
#define CRYP_CR_DATATYPE_32B 0 |
Definition at line 56 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_DATATYPE_8B
#define CRYP_CR_DATATYPE_8B CRYP_CR_DATATYPE_1 |
Definition at line 58 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_GCM_CCMPH_FINAL
#define CRYP_CR_GCM_CCMPH_FINAL (CRYP_CR_GCM_CCMPH_1 | CRYP_CR_GCM_CCMPH_0) |
Definition at line 48 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_GCM_CCMPH_HEADER
#define CRYP_CR_GCM_CCMPH_HEADER CRYP_CR_GCM_CCMPH_0 |
Definition at line 46 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_GCM_CCMPH_INIT
#define CRYP_CR_GCM_CCMPH_INIT 0 |
Definition at line 45 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_GCM_CCMPH_PAYLOAD
#define CRYP_CR_GCM_CCMPH_PAYLOAD CRYP_CR_GCM_CCMPH_1 |
Definition at line 47 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_KEYSIZE_128B
#define CRYP_CR_KEYSIZE_128B 0 |
Definition at line 51 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_KEYSIZE_192B
#define CRYP_CR_KEYSIZE_192B CRYP_CR_KEYSIZE_0 |
Definition at line 52 of file stm32mp2xx_crypto_cipher.h.
◆ CRYP_CR_KEYSIZE_256B
#define CRYP_CR_KEYSIZE_256B CRYP_CR_KEYSIZE_1 |
Definition at line 53 of file stm32mp2xx_crypto_cipher.h.
◆ STM32MP2XX_CRYPTO_CIPHER_SUPPORT
#define STM32MP2XX_CRYPTO_CIPHER_SUPPORT DISABLED |
Definition at line 39 of file stm32mp2xx_crypto_cipher.h.
Function Documentation
◆ crypInit()
error_t crypInit | ( | void | ) |
CRYP module initialization.
- Returns
- Error code
Definition at line 53 of file apm32f4xx_crypto_cipher.c.