nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator > Struct Template Reference

Galois/Counter Mode. More...

#include <gcm.hpp>

+ Collaboration diagram for nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >:

Classes

struct  bind
 

Public Types

template<typename T >
using allocator_type = Allocator< T >
 
typedef BlockCipher cipher_type
 
typedef detail::gcm_decryption_policy< cipher_type, TagBits, padding_type, stream_cipher_type, hash_type, allocator_typedecryption_policy
 
typedef detail::gcm_encryption_policy< cipher_type, TagBits, padding_type, stream_cipher_type, hash_type, allocator_typeencryption_policy
 
typedef Hash hash_type
 
typedef Padding< BlockCipher > padding_type
 
typedef StreamCipher stream_cipher_type
 

Detailed Description

template<typename BlockCipher, template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
struct nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >

Galois/Counter Mode.

Template Parameters
BlockCipher
Padding
StreamCipher
Hash

Member Typedef Documentation

◆ allocator_type

template<typename BlockCipher , template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
template<typename T >
using nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >::allocator_type = Allocator<T>

◆ cipher_type

template<typename BlockCipher , template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
typedef BlockCipher nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >::cipher_type

◆ decryption_policy

template<typename BlockCipher , template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
typedef detail::gcm_decryption_policy<cipher_type, TagBits, padding_type, stream_cipher_type, hash_type, allocator_type> nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >::decryption_policy

◆ encryption_policy

template<typename BlockCipher , template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
typedef detail::gcm_encryption_policy<cipher_type, TagBits, padding_type, stream_cipher_type, hash_type, allocator_type> nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >::encryption_policy

◆ hash_type

template<typename BlockCipher , template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
typedef Hash nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >::hash_type

◆ padding_type

template<typename BlockCipher , template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
typedef Padding<BlockCipher> nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >::padding_type

◆ stream_cipher_type

template<typename BlockCipher , template< typename > class Padding, std::size_t TagBits = 16, typename Hash = hashes::ghash, typename StreamCipher = stream::ctr<BlockCipher>, template< typename > class Allocator = std::allocator>
typedef StreamCipher nil::crypto3::block::modes::gcm< BlockCipher, Padding, TagBits, Hash, StreamCipher, Allocator >::stream_cipher_type

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