nil::crypto3::stream::detail::basic_functions< WordBits > Struct Template Reference

#include <basic_functions.hpp>

+ Inheritance diagram for nil::crypto3::stream::detail::basic_functions< WordBits >:
+ Collaboration diagram for nil::crypto3::stream::detail::basic_functions< WordBits >:

Public Types

typedef boost::uint_t< CHAR_BIT >::exact byte_type
 
typedef boost::uint_t< word_bits >::exact 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 word_bits = WordBits
 

Member Typedef Documentation

◆ byte_type

template<std::size_t WordBits>
typedef boost::uint_t<CHAR_BIT>::exact nil::crypto3::stream::detail::basic_functions< WordBits >::byte_type

◆ word_type

template<std::size_t WordBits>
typedef boost::uint_t<word_bits>::exact nil::crypto3::stream::detail::basic_functions< WordBits >::word_type

Member Function Documentation

◆ rotl() [1/2]

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

◆ rotl() [2/2]

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

◆ rotr() [1/2]

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

◆ rotr() [2/2]

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

◆ shl() [1/2]

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

◆ shl() [2/2]

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

◆ shr() [1/2]

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

◆ shr() [2/2]

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

Member Data Documentation

◆ word_bits

template<std::size_t WordBits>
constexpr static const std::size_t nil::crypto3::stream::detail::basic_functions< WordBits >::word_bits = WordBits
staticconstexpr

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