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

UM1725

 

HAL CRYP Generic Driver

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

HAL status

10.2.10HAL_CRYP_DeInit

Function Name

HAL_StatusTypeDef HAL_CRYP_DeInit

 

(CRYP_HandleTypeDef * hcryp)

Function Description

DeInitializes the CRYP peripheral.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

HAL status

10.2.11HAL_CRYP_MspInit

Function Name

void HAL_CRYP_MspInit (CRYP_HandleTypeDef * hcryp)

Function Description

Initializes the CRYP MSP.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

None

10.2.12HAL_CRYP_MspDeInit

Function Name

void HAL_CRYP_MspDeInit (CRYP_HandleTypeDef * hcryp)

Function Description

DeInitializes CRYP MSP.

Parameters

 

hcryp: pointer to a CRYP_HandleTypeDef structure that

 

 

contains the configuration information for CRYP module

Return values

 

None

10.2.13HAL_CRYP_AESECB_Encrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in AES ECB encryption mode then

 

encrypt pPlainData.

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: Specify Timeout value

Return values

 

HAL status

10.2.14HAL_CRYP_AESCBC_Encrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt

 

 

DOCID025834 Rev 2

177/900

HAL CRYP Generic Driver

 

UM1725

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in AES CBC encryption mode then

 

encrypt pPlainData.

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: Specify Timeout value

Return values

 

HAL status

10.2.15HAL_CRYP_AESCTR_Encrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in AES CTR encryption mode then

 

encrypt pPlainData.

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: Specify Timeout value

Return values

 

HAL status

10.2.16HAL_CRYP_AESECB_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData, uint32_t Timeout)

Function Description

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

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.17HAL_CRYP_AESCBC_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in AES ECB decryption mode then

178/900

DOCID025834 Rev 2

UM1725

 

HAL CRYP Generic Driver

 

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

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.18HAL_CRYP_AESCTR_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData, uint32_t Timeout)

Function Description

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

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.19HAL_CRYP_AESECB_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

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

 

 

bytes

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.20HAL_CRYP_AESCBC_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt_IT

 

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

 

Function Description

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

 

 

DOCID025834 Rev 2

179/900

HAL CRYP Generic Driver

 

UM1725

 

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.21HAL_CRYP_AESCTR_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

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

 

 

bytes

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.22HAL_CRYP_AESECB_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

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

Function Name

HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

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

 

pPlainData: Pointer to the plaintext buffer

Return values

 

HAL status

180/900

DOCID025834 Rev 2

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