OtaUpgrade::ChecksumVerifier Class Reference
Checksum verifier used by BasicStream
if signature verification is disabled.
More...
#include <ChecksumVerifier.h>
Inheritance diagram for OtaUpgrade::ChecksumVerifier:
Collaboration diagram for OtaUpgrade::ChecksumVerifier:
Public Types | |
using | VerificationData = Hash |
Checksum type. More... | |
Public Types inherited from Crypto::HashContext< Engine_ > | |
using | Engine = Engine_ |
using | Hash = ByteArray< Engine::hashsize > |
Public Member Functions | |
bool | verify (const VerificationData &checksum) |
Public Member Functions inherited from Crypto::HashContext< Engine_ > | |
template<typename... EngineArgs> | |
HashContext (EngineArgs &&... engineArgs) | |
template<typename... EngineArgs> | |
HashContext & | reset (EngineArgs &&... engineArgs) |
Reset the context for a new calculation. More... | |
template<typename... Ts> | |
Hash | calculate (Ts &&... args) |
Calculate hash on some data. More... | |
Hash | getHash () |
Finalise and return the final hash value. More... | |
State | getState () |
Get intermediate hash state. More... | |
void | setState (const State &state) |
Restore intermediate hash state. More... | |
HashContext & | update (const Blob &blob) |
Data from Blob. More... | |
HashContext & | update (const FSTR::ObjectBase &obj) |
Data from flash object. More... | |
HashContext & | update (const void *data, size_t size) |
Pointer to data + size. More... | |
template<size_t size_> | |
HashContext & | update (const ByteArray< size_ > &array) |
Data in ByteArray. More... | |
Detailed Description
Checksum verifier used by BasicStream
if signature verification is disabled.
Wrap Crypto::Md5
such that it provides an interface compatible to SignatureVerifier
.
Member Typedef Documentation
◆ VerificationData
Checksum type.
Member Function Documentation
◆ verify()
|
inline |
Verify the given checksum
.
- Returns
true
if checksum matches content,false
otherwise.
The documentation for this class was generated from the following file: