Go to the documentation of this file.
40 class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>,
DataT>,
int>>
52 class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>,
DataT>,
int>>
55 return std::move(*this).
process(
DataT(data.begin(), data.end()));
64 class = std::enable_if_t<!std::is_same_v<std::decay_t<RangeT>,
DataT>,
int>>
73 std::string
get()
const;
77 std::unique_ptr<Private> m_d;
void processInPlace(DataT data)
Process data in-place.
Definition: sha256.cpp:44
std::string get() const
Get the hash result as unpadded base64.
Definition: sha256.cpp:49
SHA256Desc process(RangeT data) &&
Definition: sha256.hpp:53
SHA256Desc()
Construct a SHA256 description.
Definition: sha256.cpp:21
@ Private
Definition: client-model.hpp:41
Definition: location.hpp:10
#define KAZV_DECLARE_COPYABLE(typeName)
Definition: copy-helper.hpp:10
A RangeT is an ordered collection that can be iterated through.
Definition: range-t.hpp:20
auto begin() const
The beginning iterator of this range.
std::string DataT
Definition: sha256.hpp:23
SHA256Desc process(RangeT data) const &
Definition: sha256.hpp:41
void processInPlace(RangeT data)
Definition: sha256.hpp:65
SHA256Desc process(DataT data) const &
Process data and return the next hash state.
Definition: sha256.cpp:30
auto end() const
The past-end iterator of this range.
Definition: sha256.hpp:20