EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #272 background imageLoading...
Page #272 background image
HAL HASH Generic Driver
UM1940
272/1371
DocID028236 Rev 2
Parameters
hhash: pointer to a HASH_HandleTypeDef structure that
contains the configuration information for HASH module
Return values
HAL: status
HAL_HASH_DeInit
Function name
HAL_StatusTypeDef HAL_HASH_DeInit
(HASH_HandleTypeDef * hhash)
Function description
DeInitializes the HASH peripheral.
Parameters
hhash: pointer to a HASH_HandleTypeDef structure that
contains the configuration information for HASH module
Return values
HAL: status
Notes
This API must be called before starting a new processing.
HAL_HASH_SHA1_Start
Function name
HAL_StatusTypeDef HAL_HASH_SHA1_Start
(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t
Size, uint8_t * pOutBuffer, uint32_t Timeout)
Function description
Initializes the HASH peripheral in SHA1 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
HAL_HASH_MD5_Start
Function name
HAL_StatusTypeDef HAL_HASH_MD5_Start
(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t
Size, uint8_t * pOutBuffer, uint32_t Timeout)
Function description
Initializes the HASH peripheral in MD5 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 multiple
of 64 bytes, appending the input buffer is possible. If the Size
is not multiple of 64 bytes, the padding is managed by
hardware and appending the input buffer is no more possible.
pOutBuffer: Pointer to the computed digest. Its size must be
16 bytes.
Timeout: Timeout value

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals