Defines additional public functions for Skein family of algorithms.
More...
#include <skein_mixin.hpp>
|
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...
|
|
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
◆ 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
◆ set_nonce() [1/2]
Set nonce from std::string.
- Parameters
-
- 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>
Set nonce from raw buffer.
- Parameters
-
[in] | nonce | Pointer to nonce bytes |
[in] | nonce_len | Nonce length (in bytes) |
- Returns
- Reference to hasher
◆ set_personalization() [1/2]
Set personalization from std::string.
- Parameters
-
[in] | personalization | Personalization 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>
Set personalization from raw buffer.
- Parameters
-
[in] | personalization | Pointer to personalization bytes |
[in] | personalization_len | Personalization length (in bytes) |
- Returns
- Reference to hasher
The documentation for this class was generated from the following file: