mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 14:43:51 +00:00 
			
		
		
		
	preen
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