nil::crypto3::block::cipher_key< BlockCipher > Struct Template Reference

#include <cipher_key.hpp>

+ Collaboration diagram for nil::crypto3::block::cipher_key< BlockCipher >:

Public Types

typedef BlockCipher cipher_type
 
typedef cipher_type::endian_type endian_type
 
typedef cipher_type::key_type key_type
 

Public Member Functions

template<typename SinglePassRange >
 cipher_key (const SinglePassRange &r)
 
template<typename InputIterator >
 cipher_key (InputIterator first, InputIterator last)
 

Public Attributes

key_type key
 

Static Public Attributes

constexpr static const std::size_t key_bits = cipher_type::key_bits
 
constexpr static const std::size_t key_value_bits
 

Member Typedef Documentation

◆ cipher_type

template<typename BlockCipher >
typedef BlockCipher nil::crypto3::block::cipher_key< BlockCipher >::cipher_type

◆ endian_type

template<typename BlockCipher >
typedef cipher_type::endian_type nil::crypto3::block::cipher_key< BlockCipher >::endian_type

◆ key_type

template<typename BlockCipher >
typedef cipher_type::key_type nil::crypto3::block::cipher_key< BlockCipher >::key_type

Constructor & Destructor Documentation

◆ cipher_key() [1/2]

template<typename BlockCipher >
template<typename SinglePassRange >
nil::crypto3::block::cipher_key< BlockCipher >::cipher_key ( const SinglePassRange &  r)
inlineexplicit

◆ cipher_key() [2/2]

template<typename BlockCipher >
template<typename InputIterator >
nil::crypto3::block::cipher_key< BlockCipher >::cipher_key ( InputIterator  first,
InputIterator  last 
)
inlineexplicit

Member Data Documentation

◆ key

template<typename BlockCipher >
key_type nil::crypto3::block::cipher_key< BlockCipher >::key

◆ key_bits

template<typename BlockCipher >
constexpr static const std::size_t nil::crypto3::block::cipher_key< BlockCipher >::key_bits = cipher_type::key_bits
staticconstexpr

◆ key_value_bits

template<typename BlockCipher >
constexpr static const std::size_t nil::crypto3::block::cipher_key< BlockCipher >::key_value_bits
staticconstexpr
Initial value:
=
sizeof(typename cipher_type::key_type::value_type) * CHAR_BIT

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