![]() |
![]() |
HMAC Parameters. More...
#include <drivers/crypto/Crypto.h>
Data Fields | |
uint8_t * | ptrKey |
uint8_t | moreData |
void * | ptrContext |
uint8_t | first |
uint32_t | digestCount |
uint8_t | innerDigest [CRYPTO_MAX_DIGEST_SIZE] |
uint8_t | buffer [CRYPTO_MAX_BLOCK_SIZE] |
uint32_t | bufferLength |
uint32_t | blockSize |
HMAC Parameters.
This structure defines the HMAC parameters used in Crypto_sign and Crypto_verify functions.
uint32_t Crypto_HmacParams_t::blockSize |
Block size of the hashing algorithm in use
uint8_t Crypto_HmacParams_t::buffer[CRYPTO_MAX_BLOCK_SIZE] |
Internal buffer - used when moreData sets to true and the data length is not an integer multiple of blockSize
uint32_t Crypto_HmacParams_t::bufferLength |
Number of bytes in buffer
uint32_t Crypto_HmacParams_t::digestCount |
Number of bytes that was written to the HMAC engine
uint8_t Crypto_HmacParams_t::first |
True if no data was written to the HMAC engine
uint8_t Crypto_HmacParams_t::innerDigest[CRYPTO_MAX_DIGEST_SIZE] |
Intermediate digest
uint8_t Crypto_HmacParams_t::moreData |
True value will NOT close the HMAC HW machine
void* Crypto_HmacParams_t::ptrContext |
Reserved for future use
uint8_t* Crypto_HmacParams_t::ptrKey |
pointer to hash key