nil::crypto3::mac::detail::poly1305_policy Struct Reference

#include <poly1305_policy.hpp>

+ Inheritance diagram for nil::crypto3::mac::detail::poly1305_policy:
+ Collaboration diagram for nil::crypto3::mac::detail::poly1305_policy:

Public Types

typedef std::array< word_type, block_wordsblock_type
 
typedef policy_type::byte_type byte_type
 
typedef std::array< word_type, key_schedule_wordskey_schedule_type
 
typedef std::array< byte_type, key_wordskey_type
 
typedef basic_functions< 64 > policy_type
 
typedef std::array< byte_type, state_sizestate_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

◆ byte_type

◆ key_schedule_type

◆ key_type

◆ policy_type

◆ state_type

◆ word_type

Member Function Documentation

◆ rotl() [1/2]

template<std::size_t WordBits>
template<std::size_t n>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::rotl ( word_type  x)
inlinestaticinherited

◆ rotl() [2/2]

template<std::size_t WordBits>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::rotl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ rotr() [1/2]

template<std::size_t WordBits>
template<std::size_t n>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::rotr ( word_type  x)
inlinestaticinherited

◆ rotr() [2/2]

template<std::size_t WordBits>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::rotr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shl() [1/2]

template<std::size_t WordBits>
template<std::size_t n>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::shl ( word_type  x)
inlinestaticinherited

◆ shl() [2/2]

template<std::size_t WordBits>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::shl ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

◆ shr() [1/2]

template<std::size_t WordBits>
template<std::size_t n>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::shr ( word_type  x)
inlinestaticinherited

◆ shr() [2/2]

template<std::size_t WordBits>
static word_type nil::crypto3::mac::detail::basic_functions< WordBits >::shr ( word_type  x,
std::size_t  n 
)
inlinestaticinherited

Member Data Documentation

◆ block_bits

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::block_bits = block_words * word_bits
staticconstexpr

◆ block_words

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::block_words = 2
staticconstexpr

◆ key_bits

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::key_bits = key_words * CHAR_BIT
staticconstexpr

◆ key_schedule_bits

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::key_schedule_bits = key_schedule_words * word_bits
staticconstexpr

◆ key_schedule_words

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::key_schedule_words = 8
staticconstexpr

◆ key_words

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::key_words = 32
staticconstexpr

◆ state_size

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::state_size = 16
staticconstexpr

◆ word_bits

constexpr static const std::size_t nil::crypto3::mac::detail::poly1305_policy::word_bits = policy_type::word_bits
staticconstexpr

The documentation for this struct was generated from the following file: