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

UM1725

 

HAL CRYP Generic Driver

 

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

 

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.38HAL_CRYP_DESCBC_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_DESCBC_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 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.39HAL_CRYP_DESECB_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_DESECB_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

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

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.40HAL_CRYP_DESCBC_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_DESCBC_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in DES 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.41HAL_CRYP_DESECB_Decrypt_DMA

DOCID025834 Rev 2

185/900

HAL CRYP Generic Driver

 

UM1725

Function Name

HAL_StatusTypeDef HAL_CRYP_DESECB_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in DES 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.42HAL_CRYP_DESCBC_Decrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_DESCBC_Decrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in DES 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.43HAL_CRYP_TDESECB_Encrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESECB_Encrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

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

 

 

pCypherData: Pointer to the cyphertext buffer

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.44HAL_CRYP_TDESECB_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESECB_Decrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData, uint32_t Timeout)

Function Description

Initializes the CRYP peripheral in TDES ECB decryption mode

 

then decrypted pCypherData.

186/900

DOCID025834 Rev 2

UM1725

 

HAL CRYP Generic Driver

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.45HAL_CRYP_TDESCBC_Encrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESCBC_Encrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData, uint32_t Timeout)

Function Description

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

 

 

pCypherData: Pointer to the cyphertext buffer

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.46HAL_CRYP_TDESCBC_Decrypt

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESCBC_Decrypt

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData, uint32_t Timeout)

Function Description

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

 

 

pPlainData: Pointer to the plaintext buffer

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

10.2.47HAL_CRYP_TDESECB_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESECB_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

 

Function Description

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

 

DOCID025834 Rev 2

187/900

HAL CRYP Generic Driver

 

UM1725

 

 

pCypherData: Pointer to the cyphertext buffer

Return values

 

HAL status

10.2.48HAL_CRYP_TDESCBC_Encrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESCBC_Encrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

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

Return values

 

HAL status

10.2.49HAL_CRYP_TDESECB_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESECB_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

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

Return values

 

HAL status

10.2.50HAL_CRYP_TDESCBC_Decrypt_IT

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESCBC_Decrypt_IT

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,

 

uint16_t Size, uint8_t * pPlainData)

Function Description

Initializes the CRYP peripheral in TDES CBC decryption mode.

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

Return values

 

HAL status

10.2.51HAL_CRYP_TDESECB_Encrypt_DMA

Function Name

HAL_StatusTypeDef HAL_CRYP_TDESECB_Encrypt_DMA

 

(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t

 

Size, uint8_t * pCypherData)

Function Description

Initializes the CRYP peripheral in TDES ECB encryption mode

188/900

DOCID025834 Rev 2

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