mirror of
https://github.com/esphome/esphome.git
synced 2025-09-23 21:52:23 +01:00
Merge branch 'sha256_ota' into memory_api
This commit is contained in:
@@ -38,6 +38,7 @@ class MD5Digest : public HashBase {
|
|||||||
|
|
||||||
/// Add bytes of data for the digest.
|
/// Add bytes of data for the digest.
|
||||||
void add(const uint8_t *data, size_t len) override;
|
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.
|
/// Compute the digest, based on the provided data.
|
||||||
void calculate() override;
|
void calculate() override;
|
||||||
|
@@ -29,6 +29,7 @@ class SHA256 : public esphome::HashBase {
|
|||||||
|
|
||||||
void init() override;
|
void init() override;
|
||||||
void add(const uint8_t *data, size_t len) 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 add(const std::string &data) { this->add((const uint8_t *) data.c_str(), data.length()); }
|
||||||
|
|
||||||
void calculate() override;
|
void calculate() override;
|
||||||
|
Reference in New Issue
Block a user