nil::crypto3::mac::detail::poly1305_policy Struct Reference
#include <poly1305_policy.hpp>


Public Types | |
typedef std::array< word_type, block_words > | block_type |
typedef policy_type::byte_type | byte_type |
typedef std::array< word_type, key_schedule_words > | key_schedule_type |
typedef std::array< byte_type, key_words > | key_type |
typedef basic_functions< 64 > | policy_type |
typedef std::array< byte_type, state_size > | state_type |
typedef policy_type::word_type | word_type |
Static Public Member Functions | |
template<std::size_t n> | |
static word_type | rotl (word_type x) |
static word_type | rotl (word_type x, std::size_t n) |
template<std::size_t n> | |
static word_type | rotr (word_type x) |
static word_type | rotr (word_type x, std::size_t n) |
template<std::size_t n> | |
static word_type | shl (word_type x) |
static word_type | shl (word_type x, std::size_t n) |
template<std::size_t n> | |
static word_type | shr (word_type x) |
static word_type | shr (word_type x, std::size_t n) |
Static Public Attributes | |
constexpr static const std::size_t | block_bits = block_words * word_bits |
constexpr static const std::size_t | block_words = 2 |
constexpr static const std::size_t | key_bits = key_words * CHAR_BIT |
constexpr static const std::size_t | key_schedule_bits = key_schedule_words * word_bits |
constexpr static const std::size_t | key_schedule_words = 8 |
constexpr static const std::size_t | key_words = 32 |
constexpr static const std::size_t | state_size = 16 |
constexpr static const std::size_t | word_bits = policy_type::word_bits |
Member Typedef Documentation
◆ block_type
typedef std::array<word_type, block_words> nil::crypto3::mac::detail::poly1305_policy::block_type |
◆ byte_type
◆ key_schedule_type
typedef std::array<word_type, key_schedule_words> nil::crypto3::mac::detail::poly1305_policy::key_schedule_type |
◆ key_type
typedef std::array<byte_type, key_words> nil::crypto3::mac::detail::poly1305_policy::key_type |
◆ policy_type
◆ state_type
typedef std::array<byte_type, state_size> nil::crypto3::mac::detail::poly1305_policy::state_type |
◆ word_type
Member Function Documentation
◆ rotl() [1/2]
template<std::size_t WordBits>
template<std::size_t n>
|
inlinestaticinherited |
◆ rotl() [2/2]
template<std::size_t WordBits>
|
inlinestaticinherited |
◆ rotr() [1/2]
template<std::size_t WordBits>
template<std::size_t n>
|
inlinestaticinherited |
◆ rotr() [2/2]
template<std::size_t WordBits>
|
inlinestaticinherited |
◆ shl() [1/2]
template<std::size_t WordBits>
template<std::size_t n>
|
inlinestaticinherited |
◆ shl() [2/2]
template<std::size_t WordBits>
|
inlinestaticinherited |
◆ shr() [1/2]
template<std::size_t WordBits>
template<std::size_t n>
|
inlinestaticinherited |
◆ shr() [2/2]
template<std::size_t WordBits>
|
inlinestaticinherited |
Member Data Documentation
◆ block_bits
|
staticconstexpr |
◆ block_words
|
staticconstexpr |
◆ key_bits
|
staticconstexpr |
◆ key_schedule_bits
|
staticconstexpr |
◆ key_schedule_words
|
staticconstexpr |
◆ key_words
|
staticconstexpr |
◆ state_size
|
staticconstexpr |
◆ word_bits
|
staticconstexpr |
The documentation for this struct was generated from the following file: