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

UM1725

 

HAL CRYP Extension Driver

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

AuthTag: Pointer to the authentication buffer

 

 

Timeout: Timeout duration

Return values

 

HAL status

Notes

 

This API is called after

 

 

HAL_AES_CCM_Encrypt()/HAL_AES_CCM_Decrypt()

11.1.9HAL_CRYPEx_AESCCM_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Decrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in AES CCM decryption mode then

 

decrypted pCypherData.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pPlainData: Pointer to the plaintext buffer

 

 

Size: Length of the plaintext buffer, must be a multiple of 16

 

 

pCypherData: Pointer to the cyphertext buffer

 

 

Timeout: Timeout duration

Return values

 

HAL status

11.1.10HAL_CRYPEx_AESGCM_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in AES GCM encryption mode

 

using IT.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pPlainData: Pointer to the plaintext buffer

 

Size: Length of the plaintext buffer, must be a multiple of 16

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

11.1.11HAL_CRYPEx_AESCCM_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

 

Function Description

Initializes the CRYP peripheral in AES CCM encryption mode

 

using interrupt.

 

Parameters

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

contains the configuration information for CRYP module

 

pPlainData: Pointer to the plaintext buffer

 

 

Size: Length of the plaintext buffer, must be a multiple of 16

 

DOCID025834 Rev 2

199/900

HAL CRYP Extension Driver

 

UM1725

 

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

11.1.12HAL_CRYPEx_AESGCM_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES GCM decryption mode

 

using IT.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pCypherData: Pointer to the cyphertext buffer

 

Size: Length of the cyphertext buffer, must be a multiple of

 

 

16

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

11.1.13HAL_CRYPEx_AESCCM_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES CCM decryption mode

 

using interrupt then decrypted pCypherData.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pCypherData: Pointer to the cyphertext buffer

 

Size: Length of the plaintext buffer, must be a multiple of 16

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

11.1.14HAL_CRYPEx_AESGCM_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in AES GCM encryption mode

 

using DMA.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pPlainData: Pointer to the plaintext buffer

 

Size: Length of the plaintext buffer, must be a multiple of 16

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

11.1.15HAL_CRYPEx_AESCCM_Encrypt_DMA

200/900

DOCID025834 Rev 2

UM1725

 

HAL CRYP Extension Driver

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in AES CCM encryption mode

 

using interrupt.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pPlainData: Pointer to the plaintext buffer

 

Size: Length of the plaintext buffer, must be a multiple of 16

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

11.1.16HAL_CRYPEx_AESGCM_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES GCM decryption mode

 

using DMA.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pCypherData: Pointer to the cyphertext buffer.

 

Size: Length of the cyphertext buffer, must be a multiple of

 

 

16

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

11.1.17HAL_CRYPEx_AESCCM_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES CCM decryption mode

 

using DMA then decrypted pCypherData.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

 

pCypherData: Pointer to the cyphertext buffer

 

Size: Length of the plaintext buffer, must be a multiple of 16

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

11.1.18HAL_CRYPEx_GCMCCM_IRQHandler

Function Name

void HAL_CRYPEx_GCMCCM_IRQHandler

 

 

(CRYP_HandleTypeDef * hcryp)

 

Function Description

This function handles CRYPEx interrupt request.

 

Parameters

hcryp: pointer to a CRYPEx_HandleTypeDef structure that

 

contains the configuration information for CRYP module

 

DOCID025834 Rev 2

201/900

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