nil::crypto3::block::modes::detail::cipher_block_chaining< Policy > Class Template Reference

#include <cbc.hpp>

+ Collaboration diagram for nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >:

Public Types

typedef cipher_type::block_type block_type
 
typedef policy_type::cipher_type cipher_type
 
typedef policy_type::iv_type iv_type
 
typedef cipher_type::key_type key_type
 
typedef policy_type::padding_type padding_type
 
typedef policy_type::size_type size_type
 

Public Member Functions

block_type begin_message (const block_type &plaintext, const iv_type &iv=iv_type())
 
 cipher_block_chaining (const cipher_type &cipher)
 
block_type end_message (const block_type &plaintext, const iv_type &iv=iv_type())
 
block_type process_block (const block_type &plaintext)
 

Static Public Member Functions

static size_type required_output_size (size_type inputlen)
 

Static Public Attributes

constexpr static const size_type block_bits = policy_type::block_bits
 
constexpr static const size_type block_words = policy_type::block_words
 

Protected Attributes

cipher_type cipher
 
block_type previous
 

Member Typedef Documentation

◆ block_type

template<typename Policy >
typedef cipher_type::block_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::block_type

◆ cipher_type

template<typename Policy >
typedef policy_type::cipher_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::cipher_type

◆ iv_type

template<typename Policy >
typedef policy_type::iv_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::iv_type

◆ key_type

template<typename Policy >
typedef cipher_type::key_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::key_type

◆ padding_type

template<typename Policy >
typedef policy_type::padding_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::padding_type

◆ size_type

template<typename Policy >
typedef policy_type::size_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::size_type

Constructor & Destructor Documentation

◆ cipher_block_chaining()

template<typename Policy >
nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::cipher_block_chaining ( const cipher_type cipher)
inline

Member Function Documentation

◆ begin_message()

template<typename Policy >
block_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::begin_message ( const block_type plaintext,
const iv_type iv = iv_type() 
)
inline

◆ end_message()

template<typename Policy >
block_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::end_message ( const block_type plaintext,
const iv_type iv = iv_type() 
)
inline

◆ process_block()

template<typename Policy >
block_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::process_block ( const block_type plaintext)
inline

◆ required_output_size()

template<typename Policy >
static size_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::required_output_size ( size_type  inputlen)
inlinestatic

Member Data Documentation

◆ block_bits

template<typename Policy >
constexpr static const size_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::block_bits = policy_type::block_bits
staticconstexpr

◆ block_words

template<typename Policy >
constexpr static const size_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::block_words = policy_type::block_words
staticconstexpr

◆ cipher

template<typename Policy >
cipher_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::cipher
protected

◆ previous

template<typename Policy >
block_type nil::crypto3::block::modes::detail::cipher_block_chaining< Policy >::previous
protected

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