![]() |
![]() |
Struct containing the parameters required to process the last blocks of a message and finalize the hash. More...
#include <SHA2.h>
Data Fields | |
SHA2_HashSize | hashSize |
size_t | segmentLength |
size_t | totalLength |
const uint8_t * | message |
const uint8_t * | intermediateDigest |
uint8_t * | finalDigest |
Struct containing the parameters required to process the last blocks of a message and finalize the hash.
SHA2_HashSize SHA2_OperationFinishlHash_::hashSize |
The hash size to use.
size_t SHA2_OperationFinishlHash_::segmentLength |
The length of the message segment to hash, in bytes. It is not required to be a multiple of the block size.
size_t SHA2_OperationFinishlHash_::totalLength |
The total length of the entire message, in bytes. It is not required to be a multiple of the block size. This is required for finalization of the hash.
const uint8_t* SHA2_OperationFinishlHash_::message |
Pointer to the message segment to hash.
const uint8_t* SHA2_OperationFinishlHash_::intermediateDigest |
Pointer to location the previous intermediate output digest will be loaded from.
If NULL, the driver will load the previous intermediate digest from within itself. This context may have been overwritten by other clients performing their own hash operations. The context may also have been be lost after 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).
uint8_t* SHA2_OperationFinishlHash_::finalDigest |
Pointer to the location of the result digest buffer. It may point to the same location as intermediateDigest
. In that case, intermediateDigest
will be overwritten with the result digest.