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

Defines additional public functions for cSHAKE128 and cSHAKE256. More...

#include <cshake_mixin.hpp>

Public Member Functions

hasher< T, mixin::cshake_mixin > & set_function_name (const std::string &function_name)
 Set NIST function name from std::string. More...
 
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher< T, mixin::cshake_mixin > & set_function_name (const C *function_name, size_t function_name_len)
 Set NIST function name from raw buffer. More...
 
hasher< T, mixin::cshake_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::cshake_mixin > & set_customization (const C *customization, size_t customization_len)
 Set customization from raw buffer. More...
 

Detailed Description

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

Defines additional public functions for cSHAKE128 and cSHAKE256.

See also
hasher, cshake128, cshake256

Member Function Documentation

◆ set_customization() [1/2]

template<typename T >
hasher<T, mixin::cshake_mixin>& digestpp::mixin::cshake_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::cshake_mixin>& digestpp::mixin::cshake_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_function_name() [1/2]

template<typename T >
hasher<T, mixin::cshake_mixin>& digestpp::mixin::cshake_mixin< T >::set_function_name ( const std::string &  function_name)
inline

Set NIST function name from std::string.

Parameters
[in]function_nameNIST function name string
Returns
Reference to hasher

◆ set_function_name() [2/2]

template<typename T >
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
hasher<T, mixin::cshake_mixin>& digestpp::mixin::cshake_mixin< T >::set_function_name ( const C *  function_name,
size_t  function_name_len 
)
inline

Set NIST function name from raw buffer.

Parameters
[in]function_namePointer to NIST function name bytes
[in]function_name_lenNIST function name length (in bytes)
Returns
Reference to hasher

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