STM32F4xx_HAL_Driver  1.8.3
CRYP Exported Types
+ Collaboration diagram for CRYP Exported Types:

Data Structures

struct  CRYP_ConfigTypeDef
 CRYP Init Structure definition. More...
 
struct  __CRYP_HandleTypeDef
 CRYP handle Structure definition. More...
 

Typedefs

typedef struct __CRYP_HandleTypeDef CRYP_HandleTypeDef
 CRYP handle Structure definition.
 

Enumerations

enum  HAL_CRYP_STATETypeDef { HAL_CRYP_STATE_RESET = 0x00U , HAL_CRYP_STATE_READY = 0x01U , HAL_CRYP_STATE_BUSY = 0x02U }
 CRYP State Structure definition. More...
 

Detailed Description


Data Structure Documentation

◆ CRYP_ConfigTypeDef

struct CRYP_ConfigTypeDef

CRYP Init Structure definition.

Definition at line 49 of file stm32f4xx_hal_cryp.h.

Data Fields
uint32_t Algorithm

DES/ TDES Algorithm ECB/CBC AES Algorithm ECB/CBC/CTR/GCM or CCM This parameter can be a value of CRYP Algorithm Mode

uint32_t * B0

B0 is first authentication block used only in AES CCM mode

uint32_t DataType

32-bit data, 16-bit data, 8-bit data or 1-bit string. This parameter can be a value of CRYP Data Type

uint32_t DataWidthUnit

Data With Unit, this parameter can be value of CRYP Data Width Unit

uint32_t * Header

used only in AES GCM and CCM Algorithm for authentication, GCM : also known as Additional Authentication Data CCM : named B1 composed of the associated data length and Associated Data.

uint32_t HeaderSize

The size of header buffer in word

uint32_t HeaderWidthUnit

Header Width Unit, this parameter can be value of CRYP Header Width Unit

uint32_t KeyIVConfigSkip

CRYP peripheral Key and IV configuration skip, to config Key and Initialization Vector only once and to skip configuration for consecutive processings. This parameter can be a value of CRYP Key and IV Configuration Skip Mode

uint32_t KeySize

Used only in AES mode : 128, 192 or 256 bit key length in CRYP1. 128 or 256 bit key length in TinyAES This parameter can be a value of CRYP Key Size

uint32_t * pInitVect

The initialization vector used also as initialization counter in CTR mode

uint32_t * pKey

The key used for encryption/decryption

◆ __CRYP_HandleTypeDef

struct __CRYP_HandleTypeDef

CRYP handle Structure definition.

Definition at line 91 of file stm32f4xx_hal_cryp.h.

+ Collaboration diagram for __CRYP_HandleTypeDef:

Data Fields

CRYP_TypeDef * Instance
 
AES_TypeDef * Instance
 
CRYP_ConfigTypeDef Init
 
FunctionalState AutoKeyDerivation
 
uint32_t * pCrypInBuffPtr
 
uint32_t * pCrypOutBuffPtr
 
__IO uint16_t CrypHeaderCount
 
__IO uint16_t CrypInCount
 
__IO uint16_t CrypOutCount
 
uint16_t Size
 
uint32_t Phase
 
DMA_HandleTypeDefhdmain
 
DMA_HandleTypeDefhdmaout
 
HAL_LockTypeDef Lock
 
__IO HAL_CRYP_STATETypeDef State
 
__IO uint32_t ErrorCode
 
uint32_t KeyIVConfig
 
uint32_t SizesSum
 
void(* InCpltCallback )(struct __CRYP_HandleTypeDef *hcryp)
 
void(* OutCpltCallback )(struct __CRYP_HandleTypeDef *hcryp)
 
void(* ErrorCallback )(struct __CRYP_HandleTypeDef *hcryp)
 
void(* MspInitCallback )(struct __CRYP_HandleTypeDef *hcryp)
 
void(* MspDeInitCallback )(struct __CRYP_HandleTypeDef *hcryp)
 

Field Documentation

◆ AutoKeyDerivation

FunctionalState __CRYP_HandleTypeDef::AutoKeyDerivation

Used only in TinyAES to allows to bypass or not key write-up before decryption. This parameter can be a value of ENABLE/DISABLE

Definition at line 101 of file stm32f4xx_hal_cryp.h.

◆ CrypHeaderCount

__IO uint16_t __CRYP_HandleTypeDef::CrypHeaderCount

Counter of header data

Definition at line 108 of file stm32f4xx_hal_cryp.h.

◆ CrypInCount

__IO uint16_t __CRYP_HandleTypeDef::CrypInCount

Counter of input data

Definition at line 110 of file stm32f4xx_hal_cryp.h.

◆ CrypOutCount

__IO uint16_t __CRYP_HandleTypeDef::CrypOutCount

Counter of output data

Definition at line 112 of file stm32f4xx_hal_cryp.h.

◆ ErrorCallback

void(* __CRYP_HandleTypeDef::ErrorCallback) (struct __CRYP_HandleTypeDef *hcryp)

CRYP Error callback

Definition at line 138 of file stm32f4xx_hal_cryp.h.

◆ ErrorCode

__IO uint32_t __CRYP_HandleTypeDef::ErrorCode

CRYP peripheral error code

Definition at line 126 of file stm32f4xx_hal_cryp.h.

◆ hdmain

DMA_HandleTypeDef* __CRYP_HandleTypeDef::hdmain

CRYP In DMA handle parameters

Definition at line 118 of file stm32f4xx_hal_cryp.h.

◆ hdmaout

DMA_HandleTypeDef* __CRYP_HandleTypeDef::hdmaout

CRYP Out DMA handle parameters

Definition at line 120 of file stm32f4xx_hal_cryp.h.

◆ InCpltCallback

void(* __CRYP_HandleTypeDef::InCpltCallback) (struct __CRYP_HandleTypeDef *hcryp)

CRYP Input FIFO transfer completed callback

Definition at line 136 of file stm32f4xx_hal_cryp.h.

◆ Init

CRYP_ConfigTypeDef __CRYP_HandleTypeDef::Init

CRYP required parameters

Definition at line 99 of file stm32f4xx_hal_cryp.h.

◆ Instance [1/2]

CRYP_TypeDef* __CRYP_HandleTypeDef::Instance

CRYP registers base address

Definition at line 94 of file stm32f4xx_hal_cryp.h.

◆ Instance [2/2]

AES_TypeDef* __CRYP_HandleTypeDef::Instance

AES Register base address

Definition at line 96 of file stm32f4xx_hal_cryp.h.

◆ KeyIVConfig

uint32_t __CRYP_HandleTypeDef::KeyIVConfig

CRYP peripheral Key and IV configuration flag, used when configuration can be skipped

Definition at line 128 of file stm32f4xx_hal_cryp.h.

◆ Lock

HAL_LockTypeDef __CRYP_HandleTypeDef::Lock

CRYP locking object

Definition at line 122 of file stm32f4xx_hal_cryp.h.

◆ MspDeInitCallback

void(* __CRYP_HandleTypeDef::MspDeInitCallback) (struct __CRYP_HandleTypeDef *hcryp)

CRYP Msp DeInit callback

Definition at line 141 of file stm32f4xx_hal_cryp.h.

◆ MspInitCallback

void(* __CRYP_HandleTypeDef::MspInitCallback) (struct __CRYP_HandleTypeDef *hcryp)

CRYP Msp Init callback

Definition at line 140 of file stm32f4xx_hal_cryp.h.

◆ OutCpltCallback

void(* __CRYP_HandleTypeDef::OutCpltCallback) (struct __CRYP_HandleTypeDef *hcryp)

CRYP Output FIFO transfer completed callback

Definition at line 137 of file stm32f4xx_hal_cryp.h.

◆ pCrypInBuffPtr

uint32_t* __CRYP_HandleTypeDef::pCrypInBuffPtr

Pointer to CRYP processing (encryption, decryption,...) buffer

Definition at line 104 of file stm32f4xx_hal_cryp.h.

◆ pCrypOutBuffPtr

uint32_t* __CRYP_HandleTypeDef::pCrypOutBuffPtr

Pointer to CRYP processing (encryption, decryption,...) buffer

Definition at line 106 of file stm32f4xx_hal_cryp.h.

◆ Phase

uint32_t __CRYP_HandleTypeDef::Phase

CRYP peripheral phase

Definition at line 116 of file stm32f4xx_hal_cryp.h.

◆ Size

uint16_t __CRYP_HandleTypeDef::Size

length of input data in word

Definition at line 114 of file stm32f4xx_hal_cryp.h.

◆ SizesSum

uint32_t __CRYP_HandleTypeDef::SizesSum

Sum of successive payloads lengths (in bytes), stored for a single signature computation after several messages processing

Definition at line 131 of file stm32f4xx_hal_cryp.h.

◆ State

__IO HAL_CRYP_STATETypeDef __CRYP_HandleTypeDef::State

CRYP peripheral state

Definition at line 124 of file stm32f4xx_hal_cryp.h.

Enumeration Type Documentation

◆ HAL_CRYP_STATETypeDef

CRYP State Structure definition.

Enumerator
HAL_CRYP_STATE_RESET 

CRYP not yet initialized or disabled

HAL_CRYP_STATE_READY 

CRYP initialized and ready for use

HAL_CRYP_STATE_BUSY 

CRYP BUSY, internal processing is ongoing

Definition at line 79 of file stm32f4xx_hal_cryp.h.