Hash Firmware Driver Defines - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

HAL HASH Generic Driver
Parameters
Return values
22.3

HASH Firmware driver defines

22.3.1
HASH
HASH Data Type
HASH_DATATYPE_32B
HASH_DATATYPE_16B
HASH_DATATYPE_8B
HASH_DATATYPE_1B
HASH Algorithm Selection
HASH_ALGOSELECTION_SHA1
HASH_ALGOSELECTION_MD5
HASH Algorithm Mode
HASH_ALGOMODE_HASH
HASH_ALGOMODE_HMAC
HASH HMAC Long key
HASH_HMAC_KEYTYPE_SHORTKEY
HASH_HMAC_KEYTYPE_LONGKEY
HASH Flags definition
HASH_FLAG_DINIS
HASH_FLAG_DCIS
HASH_FLAG_DMAS
HASH_FLAG_BUSY
HASH_FLAG_DINNE
HASH Interrupts definition
HASH_IT_DINI
HASH_IT_DCI
HASH Exported Macros
__HAL_HASH_RESET_HANDLE_STATE
278/1371
hhash: pointer to a HASH_HandleTypeDef structure that
contains the configuration information for HASH module
None:
32-bit data. No swapping
16-bit data. Each half word is swapped
8-bit data. All bytes are swapped
1-bit data. In the word all bits are swapped
HASH function is SHA1
HASH function is MD5
Algorithm is HASH
Algorithm is HMAC
HMAC Key is <= 64 bytes
HMAC Key is> 64 bytes
16 locations are free in the DIN : A new block can be entered into
the input buffer
Digest calculation complete
DMA interface is enabled (DMAE=1) or a transfer is ongoing
The hash core is Busy : processing a block of data
DIN not empty : The input buffer contains at least one word of data
A new block can be entered into the input buffer (DIN)
Digest calculation complete
Description:
Parameters:
Return value:
DocID028236 Rev 2
Reset HASH handle state.
__HANDLE__: specifies the HASH
handle.
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF