Data Fields
SHA2_OperationFinishlHash_ Struct Reference

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
 

Detailed Description

Struct containing the parameters required to process the last blocks of a message and finalize the hash.

Field Documentation

§ hashSize

SHA2_HashSize SHA2_OperationFinishlHash_::hashSize

The hash size to use.

§ segmentLength

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.

§ totalLength

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.

§ message

const uint8_t* SHA2_OperationFinishlHash_::message

Pointer to the message segment to hash.

§ intermediateDigest

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).

§ finalDigest

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.


The documentation for this struct was generated from the following file:
Copyright 2018, Texas Instruments Incorporated