libfilezilla
Public Member Functions | List of all members
hash_accumulator Class Referencefinal

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_accumulatoroperator= (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_accumulatoroperator<< (T &&in)
 

Detailed Description

Accumulator for hashing large amounts of data.

Examples
aio.cpp.

The documentation for this class was generated from the following file: