5#ifndef DIGESTPP_MIXINS_ECHO_HPP
6#define DIGESTPP_MIXINS_ECHO_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 echo.provider.set_salt(
reinterpret_cast<const unsigned char*
>(salt), salt_len);
Main class template implementing the public API for hashing.
Definition hasher.hpp:38
Defines additional public functions for ECHO algorithm.
Definition echo_mixin.hpp:20
hasher< T, mixin::echo_mixin > & set_salt(const C *salt, size_t salt_len)
Set salt from raw buffer.
Definition echo_mixin.hpp:48
hasher< T, mixin::echo_mixin > & set_salt(const std::string &salt)
Set salt from std::string.
Definition echo_mixin.hpp:32
hasher< detail::echo_provider<>, mixin::echo_mixin > echo
Echo hash function.
Definition echo.hpp:62
digestpp namespace
Definition ascon.hpp:14