![]() |
libfilezilla
|
Accumulator for hashing large amounts of data. More...
#include <hash.hpp>
Public Member Functions | |
| hash_accumulator (hash_algorithm algorithm) | |
| Creates an initialized accumulator for the passed algorithm. | |
| hash_accumulator (hmac_algorithm algorithm, std::vector< uint8_t > const &key) | |
| hash_accumulator (hash_accumulator const &)=delete | |
| hash_accumulator & | operator= (hash_accumulator const &)=delete |
| size_t | digest_size () const |
| void | reinit () |
| void | update (std::string_view const &data) |
| void | update (std::basic_string_view< uint8_t > const &data) |
| void | update (std::vector< uint8_t > const &data) |
| void | update (uint8_t const *data, size_t size) |
| void | update (buffer const &data) |
| void | update (uint8_t in) |
| std::vector< uint8_t > | digest () |
| Returns the raw digest and reinitializes the accumulator. | |
| void | digest (uint8_t *out, size_t s) |
| operator std::vector< uint8_t > () | |
| bool | is_digest (std::string_view const &ref) |
| bool | is_digest (uint8_t const *ref, size_t s) |
| template<typename T > | |
| hash_accumulator & | operator<< (T &&in) |
| std::vector< std::uint8_t > | export_state () |
| Currently only implemented for SHA1. | |
| bool | import_state (std::vector< std::uint8_t > const &state) |
Accumulator for hashing large amounts of data.
1.8.10