![]() |
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 (hash_accumulator const &)=delete | |
| hash_accumulator & | operator= (hash_accumulator const &)=delete |
| 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 (uint8_t in) |
| std::vector< uint8_t > | digest () |
| Returns the raw digest and reinitializes the accumulator. | |
| operator std::vector< uint8_t > () | |
| template<typename T > | |
| hash_accumulator & | operator<< (T &&in) |
Accumulator for hashing large amounts of data.