stm32g0xx_crypto_cipher.h File Reference

STM32G0 cipher hardware accelerator. More...

#include "core/crypto.h"

Go to the source code of this file.

Macros

#define STM32G0XX_CRYPTO_CIPHER_SUPPORT   DISABLED
 
#define AES_CR_KEYSIZE_128B   0
 
#define AES_CR_KEYSIZE_256B   AES_CR_KEYSIZE
 
#define AES_CR_GCMPH_INIT   0
 
#define AES_CR_GCMPH_HEADER   AES_CR_GCMPH_0
 
#define AES_CR_GCMPH_PAYLOAD   AES_CR_GCMPH_1
 
#define AES_CR_GCMPH_FINAL   (AES_CR_GCMPH_1 | AES_CR_GCMPH_0)
 
#define AES_CR_CHMOD_ECB   0
 
#define AES_CR_CHMOD_CBC   AES_CR_CHMOD_0
 
#define AES_CR_CHMOD_CTR   AES_CR_CHMOD_1
 
#define AES_CR_CHMOD_GCM_GMAC   (AES_CR_CHMOD_0 | AES_CR_CHMOD_1)
 
#define AES_CR_CHMOD_CCM   AES_CR_CHMOD_2
 
#define AES_CR_MODE_ENCRYPTION   0
 
#define AES_CR_MODE_KEY_DERIVATION   AES_CR_MODE_0
 
#define AES_CR_MODE_DECRYPTION   AES_CR_MODE_1
 
#define AES_CR_DATATYPE_32B   0
 
#define AES_CR_DATATYPE_16B   AES_CR_DATATYPE_0
 
#define AES_CR_DATATYPE_8B   AES_CR_DATATYPE_1
 
#define AES_CR_DATATYPE_1B   (AES_CR_DATATYPE_1 | AES_CR_DATATYPE_0)
 

Functions

error_t crypInit (void)
 CRYP module initialization. More...
 

Detailed Description

STM32G0 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 stm32g0xx_crypto_cipher.h.

Macro Definition Documentation

◆ AES_CR_CHMOD_CBC

#define AES_CR_CHMOD_CBC   AES_CR_CHMOD_0

Definition at line 56 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_CHMOD_CCM

#define AES_CR_CHMOD_CCM   AES_CR_CHMOD_2

Definition at line 59 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_CHMOD_CTR

#define AES_CR_CHMOD_CTR   AES_CR_CHMOD_1

Definition at line 57 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_CHMOD_ECB

#define AES_CR_CHMOD_ECB   0

Definition at line 55 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_CHMOD_GCM_GMAC

#define AES_CR_CHMOD_GCM_GMAC   (AES_CR_CHMOD_0 | AES_CR_CHMOD_1)

Definition at line 58 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_DATATYPE_16B

#define AES_CR_DATATYPE_16B   AES_CR_DATATYPE_0

Definition at line 68 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_DATATYPE_1B

#define AES_CR_DATATYPE_1B   (AES_CR_DATATYPE_1 | AES_CR_DATATYPE_0)

Definition at line 70 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_DATATYPE_32B

#define AES_CR_DATATYPE_32B   0

Definition at line 67 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_DATATYPE_8B

#define AES_CR_DATATYPE_8B   AES_CR_DATATYPE_1

Definition at line 69 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_GCMPH_FINAL

#define AES_CR_GCMPH_FINAL   (AES_CR_GCMPH_1 | AES_CR_GCMPH_0)

Definition at line 52 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_GCMPH_HEADER

#define AES_CR_GCMPH_HEADER   AES_CR_GCMPH_0

Definition at line 50 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_GCMPH_INIT

#define AES_CR_GCMPH_INIT   0

Definition at line 49 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_GCMPH_PAYLOAD

#define AES_CR_GCMPH_PAYLOAD   AES_CR_GCMPH_1

Definition at line 51 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_KEYSIZE_128B

#define AES_CR_KEYSIZE_128B   0

Definition at line 45 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_KEYSIZE_256B

#define AES_CR_KEYSIZE_256B   AES_CR_KEYSIZE

Definition at line 46 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_MODE_DECRYPTION

#define AES_CR_MODE_DECRYPTION   AES_CR_MODE_1

Definition at line 64 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_MODE_ENCRYPTION

#define AES_CR_MODE_ENCRYPTION   0

Definition at line 62 of file stm32g0xx_crypto_cipher.h.

◆ AES_CR_MODE_KEY_DERIVATION

#define AES_CR_MODE_KEY_DERIVATION   AES_CR_MODE_0

Definition at line 63 of file stm32g0xx_crypto_cipher.h.

◆ STM32G0XX_CRYPTO_CIPHER_SUPPORT

#define STM32G0XX_CRYPTO_CIPHER_SUPPORT   DISABLED

Definition at line 39 of file stm32g0xx_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.