From 13f79a8ab6ba2a2bdfa2056f2f3dc79b2400e31f Mon Sep 17 00:00:00 2001 From: pennam Date: Mon, 9 Dec 2024 15:58:37 +0100 Subject: [PATCH] sha256: restore HASH_SIZE constexpr --- src/sha256/SHA256.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sha256/SHA256.h b/src/sha256/SHA256.h index 504f249..4498e9d 100644 --- a/src/sha256/SHA256.h +++ b/src/sha256/SHA256.h @@ -30,6 +30,8 @@ namespace arduino { namespace sha256 { class SHA256 { public: + static constexpr uint32_t HASH_SIZE = SHA256_DIGEST_SIZE; + inline void begin() { return arduino::sha256::begin(&_ctx); }