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

#include <aead.hpp>

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

Public Types

typedef policy_type::authenticated_data_type authenticated_data_type
 
typedef cipher_type::block_type block_type
 
typedef policy_type::cipher_type cipher_type
 
typedef cipher_type::key_type key_type
 
typedef policy_type::padding_type padding_type
 

Public Member Functions

template<typename AssociatedDataContainer >
 authenticated_encryption_associated_data (const cipher_type &cipher, const AssociatedDataContainer &associated_data)
 
block_type begin_message (const block_type &plaintext)
 
block_type end_message (const block_type &plaintext)
 
block_type process_block (const block_type &plaintext)
 

Static Public Member Functions

static std::size_t required_output_size (std::size_t inputlen)
 

Static Public Attributes

constexpr static const std::size_t block_bits = policy_type::block_bits
 
constexpr static const std::size_t block_words = policy_type::block_words
 

Protected Member Functions

template<typename AssociatedDataContainer >
void schedule_associated_data (const AssociatedDataContainer &iad)
 

Protected Attributes

authenticated_data_type ad
 
cipher_type cipher
 

Member Typedef Documentation

◆ authenticated_data_type

template<typename Policy >
typedef policy_type::authenticated_data_type nil::crypto3::block::modes::detail::authenticated_encryption_associated_data< Policy >::authenticated_data_type

◆ block_type

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

◆ cipher_type

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

◆ key_type

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

◆ padding_type

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

Constructor & Destructor Documentation

◆ authenticated_encryption_associated_data()

template<typename Policy >
template<typename AssociatedDataContainer >
nil::crypto3::block::modes::detail::authenticated_encryption_associated_data< Policy >::authenticated_encryption_associated_data ( const cipher_type cipher,
const AssociatedDataContainer &  associated_data 
)
inline

Member Function Documentation

◆ begin_message()

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

◆ end_message()

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

◆ process_block()

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

◆ required_output_size()

template<typename Policy >
static std::size_t nil::crypto3::block::modes::detail::authenticated_encryption_associated_data< Policy >::required_output_size ( std::size_t  inputlen)
inlinestatic

◆ schedule_associated_data()

template<typename Policy >
template<typename AssociatedDataContainer >
void nil::crypto3::block::modes::detail::authenticated_encryption_associated_data< Policy >::schedule_associated_data ( const AssociatedDataContainer &  iad)
inlineprotected

Member Data Documentation

◆ ad

◆ block_bits

template<typename Policy >
constexpr static const std::size_t nil::crypto3::block::modes::detail::authenticated_encryption_associated_data< Policy >::block_bits = policy_type::block_bits
staticconstexpr

◆ block_words

template<typename Policy >
constexpr static const std::size_t nil::crypto3::block::modes::detail::authenticated_encryption_associated_data< Policy >::block_words = policy_type::block_words
staticconstexpr

◆ cipher


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