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

HAL HASH Extension Driver

 

UM1725

 

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

 

 

pOutBuffer: Pointer to the computed digest. Its size must be

 

 

20 bytes.

 

 

Timeout: Timeout value

Return values

 

HAL status

28.1.13HAL_HASHEx_SHA224_Start_IT

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA224_Start_IT

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size, uint8_t * pOutBuffer)

Function Description

Initializes the HASH peripheral in SHA224 mode then processes

 

pInBuffer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

 

pOutBuffer: Pointer to the computed digest. Its size must be

 

 

20 bytes.

Return values

 

HAL status

28.1.14HAL_HASHEx_SHA256_Start_IT

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA256_Start_IT

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size, uint8_t * pOutBuffer)

Function Description

Initializes the HASH peripheral in SHA256 mode then processes

 

pInBuffer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

 

pOutBuffer: Pointer to the computed digest. Its size must be

 

 

20 bytes.

Return values

 

HAL status

28.1.15HAL_HASHEx_IRQHandler

Function Name

void HAL_HASHEx_IRQHandler (HASH_HandleTypeDef *

 

hhash)

Function Description

This function handles HASH interrupt request.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

Return values

 

None

380/900

 

DOCID025834 Rev 2

UM1725

HAL HASH Extension Driver

28.1.16HAL_HASHEx_SHA224_Start_DMA

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA224_Start_DMA

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size)

Function Description

Initializes the HASH peripheral in SHA224 mode then enables

 

DMA to control data transfer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

Return values

 

HAL status

28.1.17HAL_HASHEx_SHA224_Finish

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA224_Finish

 

(HASH_HandleTypeDef * hhash, uint8_t * pOutBuffer, uint32_t

 

Timeout)

Function Description

Returns the computed digest in SHA224.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pOutBuffer: Pointer to the computed digest. Its size must be

 

 

28 bytes.

 

 

Timeout: Timeout value

Return values

 

HAL status

28.1.18HAL_HASHEx_SHA256_Start_DMA

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA256_Start_DMA

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size)

Function Description

Initializes the HASH peripheral in SHA256 mode then enables

 

DMA to control data transfer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

Return values

 

HAL status

28.1.19HAL_HASHEx_SHA256_Finish

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA256_Finish

 

 

(HASH_HandleTypeDef * hhash, uint8_t * pOutBuffer, uint32_t

 

Timeout)

 

Function Description

Returns the computed digest in SHA256.

 

Parameters

hhash: pointer to a HASH_HandleTypeDef structure that

 

contains the configuration information for HASH module

 

DOCID025834 Rev 2

381/900

HAL HASH Extension Driver

 

UM1725

 

pOutBuffer: Pointer to the computed digest. Its size must be

 

 

32 bytes.

 

 

Timeout: Timeout value

Return values

 

HAL status

28.1.20HAL_HMACEx_SHA224_Start_DMA

Function Name

HAL_StatusTypeDef HAL_HMACEx_SHA224_Start_DMA

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size)

Function Description

Initializes the HASH peripheral in HMAC SHA224 mode then

 

enables DMA to control data transfer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

Return values

 

HAL status

28.1.21HAL_HMACEx_SHA256_Start_DMA

Function Name

HAL_StatusTypeDef HAL_HMACEx_SHA256_Start_DMA

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size)

Function Description

Initializes the HASH peripheral in HMAC SHA256 mode then

 

enables DMA to control data transfer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

Return values

 

HAL status

28.1.22HAL_HASHEx_SHA224_Start

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA224_Start

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size, uint8_t * pOutBuffer, uint32_t Timeout)

Function Description

Initializes the HASH peripheral in SHA224 mode then processes

 

pInBuffer.

Parameters

hhash: pointer to a HASH_HandleTypeDef structure that

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

multiple of 64 bytes, the padding is managed by hardware.

 

pOutBuffer: Pointer to the computed digest. Its size must be

 

28 bytes.

 

Timeout: Specify Timeout value

382/900

DOCID025834 Rev 2

UM1725

HAL HASH Extension Driver

Return values

HAL status

28.1.23HAL_HASHEx_SHA256_Start

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA256_Start

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size, uint8_t * pOutBuffer, uint32_t Timeout)

Function Description

Initializes the HASH peripheral in SHA256 mode then processes

 

pInBuffer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

 

 

pOutBuffer: Pointer to the computed digest. Its size must be

 

 

32 bytes.

 

 

Timeout: Specify Timeout value

Return values

 

HAL status

28.1.24HAL_HASHEx_SHA224_Accumulate

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA224_Accumulate

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size)

Function Description

Initializes the HASH peripheral in SHA224 mode then processes

 

pInBuffer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

Return values

 

HAL status

28.1.25HAL_HASHEx_SHA256_Accumulate

Function Name

HAL_StatusTypeDef HAL_HASHEx_SHA256_Accumulate

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size)

Function Description

Initializes the HASH peripheral in SHA256 mode then processes

 

pInBuffer.

Parameters

 

hhash: pointer to a HASH_HandleTypeDef structure that

 

 

contains the configuration information for HASH module

 

pInBuffer: Pointer to the input buffer (buffer to be hashed).

 

Size: Length of the input buffer in bytes. If the Size is not

 

 

multiple of 64 bytes, the padding is managed by hardware.

Return values

 

HAL status

28.1.26HAL_HMACEx_SHA224_Start

DOCID025834 Rev 2

383/900

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