HashContext.h
Go to the documentation of this file.
HashContext & update(const ByteArray< size_ > &array)
Definition: HashContext.h:85
HashContext(EngineArgs &&... engineArgs)
Definition: HashContext.h:33
HashContext & update(const void *data, size_t size)
Definition: HashContext.h:79
HashContext & update(const FSTR::ObjectBase &obj)
Definition: HashContext.h:67
State getState()
Get intermediate hash state.
Definition: HashContext.h:108
void setState(const State &state)
Restore intermediate hash state.
Definition: HashContext.h:124
std::array< uint8_t, size_ > ByteArray
Class template for fixed byte array.
Definition: ByteArray.h:24
HashContext & reset(EngineArgs &&... engineArgs)
Reset the context for a new calculation.
Definition: HashContext.h:41
Class template for a Hash implementation 'Context'.
Definition: HashContext.h:22
size_t read(size_t offset, void *buffer, size_t count) const
Read contents of a String into RAM.
Definition: ObjectBase.hpp:72
Hash calculate(Ts &&... args)
Calculate hash on some data.
Definition: HashContext.h:52
Definition: Blake2s.h:18
Hash getHash()
Finalise and return the final hash value.
Definition: HashContext.h:95
Definition: HashContext.h:28