summaryrefslogtreecommitdiff
path: root/src/buildtool/crypto/hash_impl_sha1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/crypto/hash_impl_sha1.cpp')
-rw-r--r--src/buildtool/crypto/hash_impl_sha1.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/crypto/hash_impl_sha1.cpp b/src/buildtool/crypto/hash_impl_sha1.cpp
index 97ff5464..d188f9cf 100644
--- a/src/buildtool/crypto/hash_impl_sha1.cpp
+++ b/src/buildtool/crypto/hash_impl_sha1.cpp
@@ -51,6 +51,10 @@ class HashImplSha1 final : public Hasher::IHashImpl {
return {};
}
+ [[nodiscard]] auto GetHashLength() const noexcept -> size_t final {
+ return SHA_DIGEST_LENGTH * kCharsPerNumber;
+ }
+
private:
SHA_CTX ctx_{};
bool initialized_{};