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
16namespace semf
17{
18namespace app
19{
23class Hash
24{
25public:
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_ */
Interface for hash classes.
Definition: hash.h:24
virtual void update(uint8_t data[], size_t dataSize)=0
Updates the hash with a new chunk of data.
virtual void finish(uint8_t buffer[], size_t bufferSize)=0
Returns the hash result.
virtual ~Hash()=default
virtual void start()=0