semf
hash.h
Go to the documentation of this file.
1
10
#ifndef SEMF_APP_PROCESSING_HASH_H_
11
#define SEMF_APP_PROCESSING_HASH_H_
12
13
#include <cstddef>
14
#include <cstdint>
15
16
namespace
semf
17
{
18
namespace
app
19
{
23
class
Hash
24
{
25
public
:
26
virtual
~Hash
() =
default
;
27
29
virtual
void
start
() = 0;
35
virtual
void
update
(uint8_t data[],
size_t
dataSize) = 0;
41
virtual
void
finish
(uint8_t buffer[],
size_t
bufferSize) = 0;
42
};
43
}
/* namespace app */
44
}
/* namespace semf */
45
#endif
/* SEMF_APP_PROCESSING_HASH_H_ */
semf::app::Hash
Interface for hash classes.
Definition:
hash.h:24
semf::app::Hash::update
virtual void update(uint8_t data[], size_t dataSize)=0
Updates the hash with a new chunk of data.
semf::app::Hash::finish
virtual void finish(uint8_t buffer[], size_t bufferSize)=0
Returns the hash result.
semf::app::Hash::~Hash
virtual ~Hash()=default
semf::app::Hash::start
virtual void start()=0
semf
Definition:
batterymodelwithoutdataset.h:18
semf
app
processing
hash.h
Generated by
1.9.4