summaryrefslogtreecommitdiff
path: root/src/buildtool/crypto/hash_impl_sha256.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-06-15 18:51:47 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-06-20 15:23:02 +0200
commit855affd9b681d98f248009ddb2c1abe987029f72 (patch)
tree6d4dbfc2c99020772313f381d2f793950d2b03f4 /src/buildtool/crypto/hash_impl_sha256.hpp
parent391d982f2fbd98a2973f14e0b5969f66c2abd756 (diff)
downloadjustbuild-855affd9b681d98f248009ddb2c1abe987029f72.tar.gz
Crypto: Refactor hash computation
... by renaming HashGenerator to (incremental) Hasher and dropping support for Git/MD5 hashes. The Hasher does not expose the actual hash implementation.
Diffstat (limited to 'src/buildtool/crypto/hash_impl_sha256.hpp')
-rw-r--r--src/buildtool/crypto/hash_impl_sha256.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/crypto/hash_impl_sha256.hpp b/src/buildtool/crypto/hash_impl_sha256.hpp
index d74c1492..106d8a0b 100644
--- a/src/buildtool/crypto/hash_impl_sha256.hpp
+++ b/src/buildtool/crypto/hash_impl_sha256.hpp
@@ -3,8 +3,9 @@
#include <memory>
-#include "src/buildtool/crypto/hash_impl.hpp"
+#include "src/buildtool/crypto/hasher.hpp"
-[[nodiscard]] extern auto CreateHashImplSha256() -> std::unique_ptr<IHashImpl>;
+[[nodiscard]] extern auto CreateHashImplSha256()
+ -> std::unique_ptr<Hasher::IHashImpl>;
#endif // INCLUDED_SRC_BUILDTOOL_CRYPTO_HASH_IMPL_SHA256_HPP