5#ifndef DIGESTPP_MIXINS_SKEIN_HPP
6#define DIGESTPP_MIXINS_SKEIN_HPP
31 skein.provider.set_personalization(personalization);
32 skein.provider.init();
43 template<typename C, typename std::enable_if<detail::is_byte<C>::value>::type* =
nullptr>
46 return set_personalization(std::string(
reinterpret_cast<const char*
>(personalization), personalization_len));
58 skein.provider.set_key(key);
59 skein.provider.init();
70 template<typename C, typename std::enable_if<detail::is_byte<C>::value>::type* =
nullptr>
73 return set_key(std::string(
reinterpret_cast<const char*
>(key), key_len));
85 skein.provider.set_nonce(nonce);
86 skein.provider.init();
97 template<typename C, typename std::enable_if<detail::is_byte<C>::value>::type* =
nullptr>
100 return set_nonce(std::string(
reinterpret_cast<const char*
>(nonce), nonce_len));
Main class template implementing the public API for hashing.
Definition hasher.hpp:38
Defines additional public functions for Skein family of algorithms.
Definition skein_mixin.hpp:20
hasher< T, mixin::skein_mixin > & set_key(const C *key, size_t key_len)
Set key from raw buffer.
Definition skein_mixin.hpp:71
hasher< T, mixin::skein_mixin > & set_nonce(const C *nonce, size_t nonce_len)
Set nonce from raw buffer.
Definition skein_mixin.hpp:98
hasher< T, mixin::skein_mixin > & set_key(const std::string &key)
Set key from std::string.
Definition skein_mixin.hpp:55
hasher< T, mixin::skein_mixin > & set_nonce(const std::string &nonce)
Set nonce from std::string.
Definition skein_mixin.hpp:82
hasher< T, mixin::skein_mixin > & set_personalization(const std::string &personalization)
Set personalization from std::string.
Definition skein_mixin.hpp:28
hasher< T, mixin::skein_mixin > & set_personalization(const C *personalization, size_t personalization_len)
Set personalization from raw buffer.
Definition skein_mixin.hpp:44
digestpp namespace
Definition ascon.hpp:14