1#ifndef Hash_Generator_h
2#define Hash_Generator_h
8#if THINGSBOARD_USE_MBED_TLS
11#include <Seeed_mbedtls.h>
84 mbedtls_md_context_t m_ctx = {};
size_t constexpr MAX_STRING_HASH_SIZE
Definition: HashGenerator.h:17
Wrapper class which allows generating a hash of a given type from any arbitrary byte payload,...
Definition: HashGenerator.h:28
~HashGenerator(void)
Destructor.
Definition: HashGenerator.cpp:7
bool start(mbedtls_md_type_t const &type)
Starts the hashing process.
Definition: HashGenerator.cpp:11
bool update(uint8_t const *data, size_t const &length)
Update the current hash value with new data.
Definition: HashGenerator.cpp:24
HashGenerator(void)=default
Constructor.
HashGenerator(HashGenerator const &other)=delete
Deleted copy constructor.
HashString finish()
Calculates the final hash string representation and stops the hash calculation no further calls to up...
Definition: HashGenerator.cpp:28
void operator=(HashGenerator const &other)=delete
Deleted copy assignment operator.
Wrapper class for the char array that is big enough to hold the string representation of every possib...
Definition: HashGenerator.h:34
char hash[MAX_STRING_HASH_SIZE]
Definition: HashGenerator.h:35