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

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

#include <kmac_mixin.hpp>

Public Member Functions

hasher< T, mixin::kmac_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::kmac_mixin > & set_key (const C *key, size_t key_len)
 Set key from raw buffer. More...
 
hasher< T, mixin::kmac_mixin > & set_customization (const std::string &customization)
 Set customization from std::string. More...
 
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher< T, mixin::kmac_mixin > & set_customization (const C *customization, size_t customization_len)
 Set customization from raw buffer. More...
 

Detailed Description

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

Defines additional public functions for KMAC family of algorithms.

See also
hasher, kmac128, kmac256, kmac128_xof, kmac256_xof

Member Function Documentation

◆ set_customization() [1/2]

template<typename T >
hasher<T, mixin::kmac_mixin>& digestpp::mixin::kmac_mixin< T >::set_customization ( const std::string &  customization)
inline

Set customization from std::string.

Parameters
[in]customizationCustomization string
Returns
Reference to hasher

◆ set_customization() [2/2]

template<typename T >
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher<T, mixin::kmac_mixin>& digestpp::mixin::kmac_mixin< T >::set_customization ( const C *  customization,
size_t  customization_len 
)
inline

Set customization from raw buffer.

Parameters
[in]customizationPointer to customization bytes
[in]customization_lenCustomization length (in bytes)
Returns
Reference to hasher

◆ set_key() [1/2]

template<typename T >
hasher<T, mixin::kmac_mixin>& digestpp::mixin::kmac_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::kmac_mixin>& digestpp::mixin::kmac_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

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