Skein hash function.
More...
#include <mckl/random/skein.hpp>
|
| using | key_type = typename Generator::key_type |
| | Type of the key. More...
|
| |
| using | value_type = typename key_type::value_type |
| | Type of the key and tweak words. More...
|
| |
template<typename Generator>
class mckl::Skein< Generator >
Skein hash function.
Definition at line 45 of file skein.hpp.
◆ key_type
template<typename Generator >
Type of the key.
Definition at line 49 of file skein.hpp.
◆ value_type
template<typename Generator >
Type of the key and tweak words.
Definition at line 52 of file skein.hpp.
◆ bits()
template<typename Generator >
| static constexpr std::size_t mckl::Skein< Generator >::bits |
( |
| ) |
|
|
inlinestatic |
The number of bits of internal state.
Definition at line 263 of file skein.hpp.
◆ bytes()
template<typename Generator >
| static constexpr std::size_t mckl::Skein< Generator >::bytes |
( |
| ) |
|
|
inlinestatic |
The number of bytes of internal state.
Definition at line 260 of file skein.hpp.
◆ hash() [1/2]
template<typename Generator >
Simple hashing.
- Parameters
-
| M | The messages |
| N | The lenght of the hash value in bits |
| H | The hash value |
Definition at line 269 of file skein.hpp.
◆ hash() [2/2]
template<typename Generator >
Full Skein interface.
- Parameters
-
| n | The number of messages |
| M | The messages |
| N | The lenght of the hash value in bits |
| H | The hash value |
| K | The optional key |
| Yl | Tree leaf size |
| Yf | Tree fan-out |
| Ym | Tree maximum height |
K.type() is ignored. No operation will be done if the types of messages are not valid. And runtime assertions will be rasied if assertion is not disabled.
Tree hashing is ignored for now
Definition at line 291 of file skein.hpp.