1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 15:12:06 +00:00
This commit is contained in:
J. Nick Koston
2025-09-21 15:56:05 -06:00
parent b1f90fb78d
commit 6c26f75a77
2 changed files with 2 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ class MD5Digest : public HashBase {
/// Add bytes of data for the digest.
void add(const uint8_t *data, size_t len) override;
using HashBase::add; // Bring base class overload into scope
/// Compute the digest, based on the provided data.
void calculate() override;

View File

@@ -29,6 +29,7 @@ class SHA256 : public esphome::HashBase {
void init() override;
void add(const uint8_t *data, size_t len) override;
using HashBase::add; // Bring base class overload into scope
void add(const std::string &data) { this->add((const uint8_t *) data.c_str(), data.length()); }
void calculate() override;