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

HAL HASH Extension Driver

 

UM1725

Function Name

HAL_StatusTypeDef HAL_HMACEx_SHA224_Start

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size, uint8_t * pOutBuffer, uint32_t Timeout)

Function Description

Initializes the HASH peripheral in HMAC 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.

 

 

Timeout: Timeout value

Return values

 

HAL status

28.1.27HAL_HMACEx_SHA256_Start

Function Name

HAL_StatusTypeDef HAL_HMACEx_SHA256_Start

 

(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t

 

Size, uint8_t * pOutBuffer, uint32_t Timeout)

Function Description

Initializes the HASH peripheral in HMAC 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.

 

 

Timeout: Timeout value

Return values

 

HAL status

28.1.28HAL_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.29HAL_HASHEx_SHA256_Start_IT

384/900

DOCID025834 Rev 2

UM1725

 

HAL HASH Extension Driver

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.30HAL_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.31HAL_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.32HAL_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.

 

 

DOCID025834 Rev 2

385/900

HAL HASH Extension Driver

 

UM1725

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.33HAL_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

 

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

 

 

32 bytes.

 

Timeout: Timeout value

Return values

 

HAL status

28.1.34HAL_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.35HAL_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

386/900

DOCID025834 Rev 2

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