nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator > Class Template Reference

#include <gcm.hpp>

+ Inheritance diagram for nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >:
+ Collaboration diagram for nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >:

Public Types

template<typename T >
using allocator_type = Allocator< T >
 
typedef policy_type::associated_data_type associated_data_type
 
typedef policy_type::block_type block_type
 
typedef policy_type::cipher_type cipher_type
 
typedef policy_type::hash_type hash_type
 
typedef policy_type::nonce_type nonce_type
 
typedef policy_type::padding_type padding_type
 
typedef policy_type::stream_cipher_type stream_cipher_type
 

Public Member Functions

 BOOST_STATIC_ASSERT (block_bits==128)
 
 BOOST_STATIC_ASSERT (tag_bits >=12 *CHAR_BIT &&tag_bits<=16 *CHAR_BIT)
 

Static Public Member Functions

static block_type begin_message (const cipher_type &cipher, const block_type &plaintext)
 
static block_type end_message (const cipher_type &cipher, const block_type &plaintext)
 
static block_type process_block (const cipher_type &cipher, const block_type &plaintext)
 

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
 
constexpr static const std::size_t tag_bits = policy_type::tag_bits
 

Member Typedef Documentation

◆ allocator_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
template<typename T >
using nil::crypto3::block::modes::detail::gcm_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::allocator_type = Allocator<T>
inherited

◆ associated_data_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
typedef policy_type::associated_data_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::associated_data_type

◆ block_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
typedef policy_type::block_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::block_type

◆ cipher_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
typedef policy_type::cipher_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::cipher_type

◆ hash_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
typedef policy_type::hash_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::hash_type

◆ nonce_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
typedef policy_type::nonce_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::nonce_type

◆ padding_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
typedef policy_type::padding_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::padding_type

◆ stream_cipher_type

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
typedef policy_type::stream_cipher_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::stream_cipher_type

Member Function Documentation

◆ begin_message()

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
static block_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::begin_message ( const cipher_type cipher,
const block_type plaintext 
)
inlinestatic

◆ BOOST_STATIC_ASSERT() [1/2]

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
nil::crypto3::block::modes::detail::gcm_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::BOOST_STATIC_ASSERT ( block_bits  = =128)
inherited

◆ BOOST_STATIC_ASSERT() [2/2]

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
nil::crypto3::block::modes::detail::gcm_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::BOOST_STATIC_ASSERT ( tag_bits >=12 *CHAR_BIT &&tag_bits<=16 *  CHAR_BIT)
inherited

◆ end_message()

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
static block_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::end_message ( const cipher_type cipher,
const block_type plaintext 
)
inlinestatic

◆ process_block()

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
static block_type nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::process_block ( const cipher_type cipher,
const block_type plaintext 
)
inlinestatic

Member Data Documentation

◆ block_bits

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
constexpr static const std::size_t nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::block_bits = policy_type::block_bits
staticconstexpr

◆ block_words

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
constexpr static const std::size_t nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::block_words = policy_type::block_words
staticconstexpr

◆ tag_bits

template<typename Cipher , std::size_t TagBits, typename Padding , typename StreamCipher , typename Hash , template< typename > class Allocator>
constexpr static const std::size_t nil::crypto3::block::modes::detail::gcm_encryption_policy< Cipher, TagBits, Padding, StreamCipher, Hash, Allocator >::tag_bits = policy_type::tag_bits
staticconstexpr

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