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

UM1725

 

HAL CRYP Generic Driver

 

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 8

 

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.52HAL_CRYP_TDESCBC_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESCBC_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in TDES CBC 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 8

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.53HAL_CRYP_TDESECB_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESECB_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in TDES ECB decryption 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 8

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.54HAL_CRYP_TDESCBC_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESCBC_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

 

uint16_t Size, uint8_t * pPlainData)

 

Function Description

Initializes the CRYP peripheral in TDES CBC 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 plaintext buffer, must be a multiple of 8

 

pPlainData: Pointer to the plaintext buffer

 

 

DOCID025834 Rev 2

189/900

HAL CRYP Generic Driver

UM1725

Return values

HAL status

10.2.55HAL_CRYP_InCpltCallback

Function Name

void HAL_CRYP_InCpltCallback (CRYP_HandleTypeDef *

 

hcryp)

Function Description

Input FIFO transfer completed callbacks.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

None

10.2.56HAL_CRYP_OutCpltCallback

Function Name

void HAL_CRYP_OutCpltCallback (CRYP_HandleTypeDef *

 

hcryp)

Function Description

Output FIFO transfer completed callbacks.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

None

10.2.57HAL_CRYP_ErrorCallback

Function Name

void HAL_CRYP_ErrorCallback (CRYP_HandleTypeDef *

 

hcryp)

Function Description

CRYP error callbacks.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

None

10.2.58HAL_CRYP_IRQHandler

Function Name

void HAL_CRYP_IRQHandler (CRYP_HandleTypeDef * hcryp)

Function Description

This function handles CRYP interrupt request.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

None

10.2.59HAL_CRYP_GetState

Function Name

HAL_CRYP_STATETypeDef HAL_CRYP_GetState

 

(CRYP_HandleTypeDef * hcryp)

Function Description

Returns the CRYP state.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

HAL state

190/900

 

DOCID025834 Rev 2

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