9#include "esp_rom_md5.h"
10#define MD5_CTX_TYPE md5_context_t
13#if defined(USE_ARDUINO) && defined(USE_ESP8266)
15#define MD5_CTX_TYPE md5_context_t
19#include <MD5Builder.h>
20#define MD5_CTX_TYPE br_md5_context
23#if defined(USE_LIBRETINY)
25#define MD5_CTX_TYPE LT_MD5_CTX_T
40 void add(
const uint8_t *data,
size_t len)
override;
47 size_t get_size()
const override {
return 16; }
Base class for hash algorithms.
virtual void add(const uint8_t *data, size_t len)=0
Add bytes of data for the hash.
void calculate() override
Compute the digest, based on the provided data.
size_t get_size() const override
Get the size of the hash in bytes (16 for MD5)
~MD5Digest() override=default
void add(const uint8_t *data, size_t len) override
Add bytes of data for the digest.
void init() override
Initialize a new MD5 digest computation.
Providing packet encoding functions for exchanging data with a remote host.