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