Defines additional public functions for KMAC family of algorithms.
More...
#include <kmac_mixin.hpp>
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
◆ set_customization() [1/2]
Set customization from std::string.
- Parameters
-
[in] | customization | Customization 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>
Set customization from raw buffer.
- Parameters
-
[in] | customization | Pointer to customization bytes |
[in] | customization_len | Customization length (in bytes) |
- Returns
- Reference to hasher
◆ set_key() [1/2]
Set key from std::string.
- Parameters
-
- 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>
Set key from raw buffer.
- Parameters
-
[in] | key | Pointer to key bytes |
[in] | key_len | Key length (in bytes) |
- Returns
- Reference to hasher
The documentation for this class was generated from the following file: