digestpp  0.01
Experimental C++11 header-only message digest library.
Public Member Functions | List of all members
digestpp::mixin::skein_mixin< T > Class Template Reference

Defines additional public functions for Skein family of algorithms. More...

#include <skein_mixin.hpp>

Public Member Functions

hasher< T, mixin::skein_mixin > & set_personalization (const std::string &personalization)
 Set personalization from std::string. More...
 
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher< T, mixin::skein_mixin > & set_personalization (const C *personalization, size_t personalization_len)
 Set personalization from raw buffer. More...
 
hasher< T, mixin::skein_mixin > & set_key (const std::string &key)
 Set key from std::string. More...
 
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher< T, mixin::skein_mixin > & set_key (const C *key, size_t key_len)
 Set key from raw buffer. More...
 
hasher< T, mixin::skein_mixin > & set_nonce (const std::string &nonce)
 Set nonce from std::string. More...
 
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher< T, mixin::skein_mixin > & set_nonce (const C *nonce, size_t nonce_len)
 Set nonce from raw buffer. More...
 

Detailed Description

template<typename T>
class digestpp::mixin::skein_mixin< T >

Defines additional public functions for Skein family of algorithms.

See also
hasher, skein256, skein512, skein1024, skein256_xof, skein512_xof, skein1024_xof

Member Function Documentation

◆ set_key() [1/2]

template<typename T >
hasher<T, mixin::skein_mixin>& digestpp::mixin::skein_mixin< T >::set_key ( const std::string &  key)
inline

Set key from std::string.

Parameters
[in]keyKey string
Returns
Reference to hasher

◆ set_key() [2/2]

template<typename T >
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher<T, mixin::skein_mixin>& digestpp::mixin::skein_mixin< T >::set_key ( const C *  key,
size_t  key_len 
)
inline

Set key from raw buffer.

Parameters
[in]keyPointer to key bytes
[in]key_lenKey length (in bytes)
Returns
Reference to hasher

◆ set_nonce() [1/2]

template<typename T >
hasher<T, mixin::skein_mixin>& digestpp::mixin::skein_mixin< T >::set_nonce ( const std::string &  nonce)
inline

Set nonce from std::string.

Parameters
[in]nonceNonce string
Returns
Reference to hasher

◆ set_nonce() [2/2]

template<typename T >
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher<T, mixin::skein_mixin>& digestpp::mixin::skein_mixin< T >::set_nonce ( const C *  nonce,
size_t  nonce_len 
)
inline

Set nonce from raw buffer.

Parameters
[in]noncePointer to nonce bytes
[in]nonce_lenNonce length (in bytes)
Returns
Reference to hasher

◆ set_personalization() [1/2]

template<typename T >
hasher<T, mixin::skein_mixin>& digestpp::mixin::skein_mixin< T >::set_personalization ( const std::string &  personalization)
inline

Set personalization from std::string.

Parameters
[in]personalizationPersonalization string
Returns
Reference to hasher

◆ set_personalization() [2/2]

template<typename T >
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher<T, mixin::skein_mixin>& digestpp::mixin::skein_mixin< T >::set_personalization ( const C *  personalization,
size_t  personalization_len 
)
inline

Set personalization from raw buffer.

Parameters
[in]personalizationPointer to personalization bytes
[in]personalization_lenPersonalization length (in bytes)
Returns
Reference to hasher

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