1 #ifndef LIBFILEZILLA_HASH_HEADER
2 #define LIBFILEZILLA_HASH_HEADER
37 void update(std::string
const& data);
38 void update(std::vector<uint8_t>
const& data);
39 void update(uint8_t
const* data,
size_t size);
40 void update(uint8_t in) {
45 std::vector<uint8_t> digest();
47 operator std::vector<uint8_t>() {
53 update(std::forward<T>(in));
66 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
md5(std::string
const& data);
67 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
md5(std::vector<uint8_t>
const& data);
70 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
sha256(std::string
const& data);
71 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
sha256(std::vector<uint8_t>
const& data);
74 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::string
const& key, std::string
const& data);
75 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::vector<uint8_t>
const& key, std::vector<uint8_t>
const& data);
76 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::vector<uint8_t>
const& key, std::string
const& data);
77 std::vector<uint8_t> FZ_PUBLIC_SYMBOL
hmac_sha256(std::string
const& key, std::vector<uint8_t>
const& data);
std::vector< uint8_t > sha256(std::string const &data)
Standard SHA256.
std::vector< uint8_t > hmac_sha256(std::string const &key, std::string const &data)
Standard HMAC using SHA256.
hash_algorithm
List of supported hashing algorithms.
Definition: hash.hpp:16
Accumulator for hashing large amounts of data.
Definition: hash.hpp:25
The namespace used by libfilezilla.
Definition: apply.hpp:16
Sets some global macros and further includes string.hpp.
std::vector< uint8_t > md5(std::string const &data)
Standard MD5.