1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-23 05:32:22 +01:00
This commit is contained in:
J. Nick Koston
2025-09-18 15:17:25 -05:00
parent 080fe6eae5
commit 8b765715d6
2 changed files with 4 additions and 8 deletions

View File

@@ -8,8 +8,7 @@
#include <SHA256.h> #include <SHA256.h>
#endif #endif
namespace esphome { namespace esphome::sha256 {
namespace sha256 {
#ifdef USE_ESP32 #ifdef USE_ESP32
struct SHA256::SHA256Context { struct SHA256::SHA256Context {
@@ -127,5 +126,4 @@ bool SHA256::equals_hex(const char *expected) {
return this->equals_bytes(parsed); return this->equals_bytes(parsed);
} }
} // namespace sha256 } // namespace esphome::sha256
} // namespace esphome

View File

@@ -5,8 +5,7 @@
#include <string> #include <string>
#include <memory> #include <memory>
namespace esphome { namespace esphome::sha256 {
namespace sha256 {
class SHA256 { class SHA256 {
public: public:
@@ -32,5 +31,4 @@ class SHA256 {
std::unique_ptr<SHA256Context> ctx_; std::unique_ptr<SHA256Context> ctx_;
}; };
} // namespace sha256 } // namespace esphome::sha256
} // namespace esphome