Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL CRYP Generic Driver

UM1725

10 HAL CRYP Generic Driver

10.1CRYP Firmware driver registers structures

10.1.1CRYP_InitTypeDef

Data Fields

uint32_t DataType

uint32_t KeySize

uint8_t * pKey

uint8_t * pInitVect

uint8_t IVSize

uint8_t TagSize

uint8_t * Header

uint32_t HeaderSize

uint8_t * pScratch

Field Documentation

uint32_t CRYP_InitTypeDef::DataType

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

uint32_t CRYP_InitTypeDef::KeySize

Used only in AES mode only : 128, 192 or 256 bit key length. This parameter can be

a value of CRYP CRYP_Key_Size

uint8_t* CRYP_InitTypeDef::pKey

The key used for encryption/decryption

uint8_t* CRYP_InitTypeDef::pInitVect

The initialization vector used also as initialization counter in CTR mode

uint8_t CRYP_InitTypeDef::IVSize

The size of initialization vector. This parameter (called nonce size in CCM) is used only in AES-128/192/256 encryption/decryption CCM mode

uint8_t CRYP_InitTypeDef::TagSize

The size of returned authentication TAG. This parameter is used only in AES128/192/256 encryption/decryption CCM mode

uint8_t* CRYP_InitTypeDef::Header

The header used in GCM and CCM modes

uint32_t CRYP_InitTypeDef::HeaderSize

The size of header buffer in bytes

uint8_t* CRYP_InitTypeDef::pScratch

Scratch buffer used to append the header. It's size must be equal to header size + 21 bytes. This parameter is used only in AES-128/192/256 encryption/decryption CCM mode

10.1.2CRYP_HandleTypeDef

Data Fields

172/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]