1 #ifndef LIBFILEZILLA_HASH_HEADER
2 #define LIBFILEZILLA_HASH_HEADER
37 void update(std::string_view
const& data);
38 void update(std::basic_string_view<uint8_t>
const& data);
39 void update(std::vector<uint8_t>
const& data);
40 void update(uint8_t
const* data,
size_t size);
41 void update(uint8_t in) {
48 operator std::vector<uint8_t>() {
54 update(std::forward<T>(in));
67 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
md5(std::string_view
const& data);
68 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
md5(std::vector<uint8_t>
const& data);
71 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
sha256(std::string_view
const& data);
72 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
sha256(std::vector<uint8_t>
const& data);
75 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::string_view
const& key, std::string_view
const& data);
76 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::vector<uint8_t>
const& key, std::vector<uint8_t>
const& data);
77 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::vector<uint8_t>
const& key, std::string_view
const& data);
78 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::string_view
const& key, std::vector<uint8_t>
const& data);