Dataflow Runtime API  4.0.1.0
Public Member Functions | Static Public Attributes | List of all members
imt::base::lib::crypto::Sha256Hash Class Reference

Provides the functions required to calculate a SHA-256 hash. More...

#include <Imt.Base.Lib.Crypto/Sha256Hash.h>

Public Member Functions

 Sha256Hash ()
 Constructor. More...
 
virtual ~Sha256Hash ()
 Destructor. More...
 
void start ()
 Starts the calculation of a new digest. More...
 
void update (uint8_t const *pBuffer, uint32_t bufferSize)
 Updates the internal digest with the given buffer. More...
 
void finish (uint8_t digest[DIGIST_SIZE])
 Finishes the calculation of a new digest. More...
 

Static Public Attributes

static uint32_t const DIGIST_SIZE = 32U
 Defines the size of the SHA256 digest. More...
 

Detailed Description

Provides the functions required to calculate a SHA-256 hash.

Constructor & Destructor Documentation

◆ Sha256Hash()

imt::base::lib::crypto::Sha256Hash::Sha256Hash ( )

Constructor.

◆ ~Sha256Hash()

virtual imt::base::lib::crypto::Sha256Hash::~Sha256Hash ( )
virtual

Destructor.

Member Function Documentation

◆ finish()

void imt::base::lib::crypto::Sha256Hash::finish ( uint8_t  digest[DIGIST_SIZE])

Finishes the calculation of a new digest.

Parameters
digestThe calculated digest

◆ start()

void imt::base::lib::crypto::Sha256Hash::start ( )

Starts the calculation of a new digest.

◆ update()

void imt::base::lib::crypto::Sha256Hash::update ( uint8_t const *  pBuffer,
uint32_t  bufferSize 
)

Updates the internal digest with the given buffer.

Parameters
pBufferThe buffer to hash
bufferSizeThe size of the buffer

Member Data Documentation

◆ DIGIST_SIZE

uint32_t const imt::base::lib::crypto::Sha256Hash::DIGIST_SIZE = 32U
static

Defines the size of the SHA256 digest.


The documentation for this class was generated from the following file: