1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-22 21:22:22 +01:00

Merge branch 'sha256_ota' into integration

This commit is contained in:
J. Nick Koston
2025-09-21 15:56:58 -06:00
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;