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>
HashContextreset (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...
 
HashContextupdate (const Blob &blob)
 Data from Blob. More...
 
HashContextupdate (const FSTR::ObjectBase &obj)
 Data from flash object. More...
 
HashContextupdate (const void *data, size_t size)
 Pointer to data + size. More...
 
template<size_t size_>
HashContextupdate (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

Member Function Documentation

◆ verify()

bool OtaUpgrade::ChecksumVerifier::verify ( const VerificationData checksum)
inline

Verify the given checksum.

Returns
true if checksum matches content, false otherwise.

The documentation for this class was generated from the following file: