mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 05:02:23 +01:00
Merge branch 'integration' into memory_api
This commit is contained in:
@@ -78,12 +78,6 @@ void SHA256::calculate() {
|
|||||||
#error "SHA256 not supported on this platform"
|
#error "SHA256 not supported on this platform"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string SHA256::get_hex_string() {
|
|
||||||
char buf[65];
|
|
||||||
this->get_hex(buf);
|
|
||||||
return std::string(buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace esphome::sha256
|
} // namespace esphome::sha256
|
||||||
|
|
||||||
#endif // Platform check
|
#endif // Platform check
|
||||||
|
@@ -33,8 +33,6 @@ class SHA256 : public esphome::HashBase {
|
|||||||
|
|
||||||
void calculate() override;
|
void calculate() override;
|
||||||
|
|
||||||
std::string get_hex_string();
|
|
||||||
|
|
||||||
/// Get the size of the hex output (64 for SHA256)
|
/// Get the size of the hex output (64 for SHA256)
|
||||||
size_t get_hex_size() const override { return 64; }
|
size_t get_hex_size() const override { return 64; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user