summaryrefslogtreecommitdiff
path: root/src/buildtool/crypto/hasher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/crypto/hasher.cpp')
-rw-r--r--src/buildtool/crypto/hasher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/crypto/hasher.cpp b/src/buildtool/crypto/hasher.cpp
index c3c0a3dd..60a029c2 100644
--- a/src/buildtool/crypto/hasher.cpp
+++ b/src/buildtool/crypto/hasher.cpp
@@ -16,6 +16,7 @@
#include "src/buildtool/crypto/hash_impl_sha1.hpp"
#include "src/buildtool/crypto/hash_impl_sha256.hpp"
+#include "src/buildtool/crypto/hash_impl_sha512.hpp"
auto Hasher::CreateHashImpl(HashType type) noexcept
-> std::unique_ptr<IHashImpl> {
@@ -24,6 +25,8 @@ auto Hasher::CreateHashImpl(HashType type) noexcept
return CreateHashImplSha1();
case HashType::SHA256:
return CreateHashImplSha256();
+ case HashType::SHA512:
+ return CreateHashImplSha512();
}
return nullptr; // make gcc happy
}