![]() |
![]() |
Struct containing the parameters required to start hashing a message. More...
#include <SHA2.h>
Data Fields | |
SHA2_HashSize | hashSize |
size_t | length |
const uint8_t * | message |
uint8_t * | intermediateDigest |
Struct containing the parameters required to start hashing a message.
SHA2_HashSize SHA2_OperationStartHash_::hashSize |
The hash size to use.
size_t SHA2_OperationStartHash_::length |
The length of the message segment to hash, in bytes. This length must be a multiple of the hash block size. The block size for 224 and 256 is 64 bytes and the block size for 384 and 512 is 128 bytes.
const uint8_t* SHA2_OperationStartHash_::message |
Pointer to the message segment to hash.
uint8_t* SHA2_OperationStartHash_::intermediateDigest |
Pointer to location the intermediate output digest will be placed. If NULL, the driver will store the intermediate digest itself. This context may be overwritten by other clients performing their own hash operations however. The context may also be lost if going into low power modes in between hash operations.
User must allocate enough space for hash result (ex. 32 bytes for 256, 28 bytes for 224).