semf
semf::app::Hash Class Referenceabstract

Interface for hash classes. More...

#include <hash.h>

Collaboration diagram for semf::app::Hash:
Collaboration graph

Public Member Functions

virtual ~Hash ()=default
 
virtual void start ()=0
 
virtual void update (uint8_t data[], size_t dataSize)=0
 Updates the hash with a new chunk of data. More...
 
virtual void finish (uint8_t buffer[], size_t bufferSize)=0
 Returns the hash result. More...
 

Detailed Description

Interface for hash classes.

Definition at line 23 of file hash.h.

Constructor & Destructor Documentation

◆ ~Hash()

virtual semf::app::Hash::~Hash ( )
virtualdefault

Member Function Documentation

◆ finish()

virtual void semf::app::Hash::finish ( uint8_t  buffer[],
size_t  bufferSize 
)
pure virtual

Returns the hash result.

Parameters
bufferPointer to a buffer for storing the hash result.
bufferSizeSize of the buffer in bytes.

◆ start()

virtual void semf::app::Hash::start ( )
pure virtual

Starts hash computation.

◆ update()

virtual void semf::app::Hash::update ( uint8_t  data[],
size_t  dataSize 
)
pure virtual

Updates the hash with a new chunk of data.

Parameters
dataPointer to a new chunk of data.
dataSizeSize of a new chunk of data in bytes.