Data Fields
SHA2_OperationProcessHash_ Struct Reference

Struct containing the parameters required to continue hashing a message. More...

#include <SHA2.h>

Data Fields

SHA2_HashSize hashSize
 
size_t length
 
const uint8_t * message
 
uint8_t * intermediateDigest
 

Detailed Description

Struct containing the parameters required to continue hashing a message.

Field Documentation

§ hashSize

SHA2_HashSize SHA2_OperationProcessHash_::hashSize

The hash size to use.

§ length

size_t SHA2_OperationProcessHash_::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.

§ message

const uint8_t* SHA2_OperationProcessHash_::message

Pointer to the message segment to hash.

§ intermediateDigest

uint8_t* SHA2_OperationProcessHash_::intermediateDigest

Pointer to location the previous intermediate output digest will be loaded from and the newly computed intermediate output will be written back.

If NULL, the driver will store the intermediate digest itself and load the previous intermediate digest from within 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).


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