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

UM1725

HAL CRYP Generic Driver

10.2.24HAL_CRYP_AESCTR_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES CTR decryption mode using

 

Interrupt.

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

10.2.25HAL_CRYP_AESECB_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in AES ECB 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

 

 

bytes

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.26HAL_CRYP_AESCBC_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in AES 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 16.

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.27HAL_CRYP_AESCTR_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

 

Function Description

Initializes the CRYP peripheral in AES CTR encryption mode using

 

DOCID025834 Rev 2

181/900

HAL CRYP Generic Driver

 

UM1725

 

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

10.2.28HAL_CRYP_AESECB_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES ECB 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 16

 

 

bytes

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

10.2.29HAL_CRYP_AESCBC_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES CBC encryption 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 16

 

 

bytes

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

10.2.30HAL_CRYP_AESCTR_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in AES CTR 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 16

182/900

DOCID025834 Rev 2

UM1725

 

HAL CRYP Generic Driver

 

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

10.2.31HAL_CRYP_DESECB_Encrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_DESECB_Encrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in DES ECB encryption mode.

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

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.32HAL_CRYP_DESECB_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_DESECB_Decrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in DES ECB decryption mode.

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

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.33HAL_CRYP_DESCBC_Encrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_DESCBC_Encrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in DES CBC encryption mode.

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

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.34HAL_CRYP_DESCBC_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_DESCBC_Decrypt

 

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

DOCID025834 Rev 2

183/900

HAL CRYP Generic Driver

 

UM1725

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in DES ECB decryption mode.

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

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.35HAL_CRYP_DESECB_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_DESECB_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

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

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.36HAL_CRYP_DESCBC_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_DESCBC_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

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

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.37HAL_CRYP_DESECB_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_DESECB_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

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

184/900

DOCID025834 Rev 2

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