mirror of
https://github.com/esphome/esphome.git
synced 2025-09-23 13:42:27 +01:00
Merge branch 'sha256_ota' into integration
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user