diff options
Diffstat (limited to 'src/buildtool/crypto/hash_impl_sha256.cpp')
-rw-r--r-- | src/buildtool/crypto/hash_impl_sha256.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/crypto/hash_impl_sha256.cpp b/src/buildtool/crypto/hash_impl_sha256.cpp index ea96a3ba..a677807b 100644 --- a/src/buildtool/crypto/hash_impl_sha256.cpp +++ b/src/buildtool/crypto/hash_impl_sha256.cpp @@ -51,6 +51,10 @@ class HashImplSha256 final : public Hasher::IHashImpl { return {}; } + [[nodiscard]] auto GetHashLength() const noexcept -> size_t final { + return SHA256_DIGEST_LENGTH * kCharsPerNumber; + } + private: SHA256_CTX ctx_{}; bool initialized_{}; |