geode/loader/hash/hash.hpp
matcool bbf2608ac2
Switch libraries for sha3 256, move implementation to source file
The previous library we used (picosha3) returned a wrong hash for one
particular file. Though this was quite rare (we only found 1 such file),
it was a bug with the library regardless.
The current sha3 library now comes from
https://github.com/stbrumme/hash-library
2023-08-03 17:24:04 -03:00

10 lines
267 B
C++

#pragma once
#include <string>
#include <ghc/filesystem.hpp>
std::string calculateSHA3_256(ghc::filesystem::path const& path);
std::string calculateSHA256(ghc::filesystem::path const& path);
std::string calculateHash(ghc::filesystem::path const& path);