5#ifndef DIGESTPP_MIXINS_BLAKE_HPP
6#define DIGESTPP_MIXINS_BLAKE_HPP
34 return set_salt(salt.c_str(), salt.size());
47 template<typename C, typename std::enable_if<detail::is_byte<C>::value>::type* =
nullptr>
51 blake.provider.set_salt(
reinterpret_cast<const unsigned char*
>(salt), salt_len);
52 blake.provider.init();
Main class template implementing the public API for hashing.
Definition hasher.hpp:38
Defines additional public functions for BLAKE algorithm.
Definition blake_mixin.hpp:20
hasher< T, mixin::blake_mixin > & set_salt(const std::string &salt)
Set salt from std::string.
Definition blake_mixin.hpp:32
hasher< T, mixin::blake_mixin > & set_salt(const C *salt, size_t salt_len)
Set salt from raw buffer.
Definition blake_mixin.hpp:48
hasher< detail::blake_provider<>, mixin::blake_mixin > blake
BLAKE hash function (SHA-3 finalist)
Definition blake.hpp:58
digestpp namespace
Definition ascon.hpp:14