Interface for hash classes.
More...
#include <hash.h>
|
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...
|
|
Interface for hash classes.
Definition at line 23 of file hash.h.
◆ ~Hash()
virtual semf::app::Hash::~Hash |
( |
| ) |
|
|
virtualdefault |
◆ finish()
virtual void semf::app::Hash::finish |
( |
uint8_t |
buffer[], |
|
|
size_t |
bufferSize |
|
) |
| |
|
pure virtual |
Returns the hash result.
- Parameters
-
buffer | Pointer to a buffer for storing the hash result. |
bufferSize | Size of the buffer in bytes. |
◆ start()
virtual void semf::app::Hash::start |
( |
| ) |
|
|
pure virtual |
◆ 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
-
data | Pointer to a new chunk of data. |
dataSize | Size of a new chunk of data in bytes. |