9#include <openssl/evp.h>
13#include "esp_rom_md5.h"
14#define MD5_CTX_TYPE md5_context_t
17#if defined(USE_ARDUINO) && defined(USE_ESP8266)
19#define MD5_CTX_TYPE md5_context_t
23#include <MD5Builder.h>
24#define MD5_CTX_TYPE br_md5_context
27#if defined(USE_LIBRETINY)
29#define MD5_CTX_TYPE LT_MD5_CTX_T
44 void add(
const uint8_t *data,
size_t len)
override;
51 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)
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.