STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
High Level SHA1 functions

High Level SHA1 Hash and HMAC functions. More...

Functions

ErrorStatus HASH_SHA1 (uint8_t *Input, uint32_t Ilen, uint8_t Output[20])
 Compute the HASH SHA1 digest. More...
 
ErrorStatus HMAC_SHA1 (uint8_t *Key, uint32_t Keylen, uint8_t *Input, uint32_t Ilen, uint8_t Output[20])
 Compute the HMAC SHA1 digest. More...
 

Detailed Description

High Level SHA1 Hash and HMAC functions.

 ===============================================================================
                          High Level SHA1 Hash and HMAC functions
 ===============================================================================

Function Documentation

ErrorStatus HASH_SHA1 ( uint8_t *  Input,
uint32_t  Ilen,
uint8_t  Output[20] 
)

Compute the HASH SHA1 digest.

Parameters
Input,:pointer to the Input buffer to be treated.
Ilen,:length of the Input buffer.
Output,:the returned digest
Return values
AnErrorStatus enumeration value:
  • SUCCESS: digest computation done
  • ERROR: digest computation failed
ErrorStatus HMAC_SHA1 ( uint8_t *  Key,
uint32_t  Keylen,
uint8_t *  Input,
uint32_t  Ilen,
uint8_t  Output[20] 
)

Compute the HMAC SHA1 digest.

Parameters
Key,:pointer to the Key used for HMAC.
Keylen,:length of the Key used for HMAC.
Input,:pointer to the Input buffer to be treated.
Ilen,:length of the Input buffer.
Output,:the returned digest
Return values
AnErrorStatus enumeration value:
  • SUCCESS: digest computation done
  • ERROR: digest computation failed