Defines additional public functions for BLAKE algorithm.
More...
#include <blake_mixin.hpp>
template<typename T>
class digestpp::mixin::blake_mixin< T >
Defines additional public functions for BLAKE algorithm.
- See also
- hasher, blake
◆ set_salt() [1/2]
Set salt from std::string.
Supported salt size is 16 bytes for BLAKE-224, BLAKE-256 and 32 bytes for BLAKE-384, BLAKE-512.
- Parameters
-
- Exceptions
-
std::runtime_error | if salt size is not supported. |
- Returns
- Reference to hasher
◆ set_salt() [2/2]
template<typename T >
template<typename C , typename std::enable_if< detail::is_byte< C >::value >::type * = nullptr>
Set salt from raw buffer.
Supported salt size is 16 bytes for BLAKE-224, BLAKE-256 and 32 bytes for BLAKE-384, BLAKE-512.
- Parameters
-
[in] | salt | Pointer to salt bytes |
[in] | salt_len | Salt length (in bytes) |
- Exceptions
-
std::runtime_error | if salt size is not supported. |
- Returns
- Reference to hasher
The documentation for this class was generated from the following file: