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