aead.hpp
Go to the documentation of this file.
111 inline static block_type begin_message(const cipher_type &cipher, const block_type &plaintext) {
117 inline static block_type process_block(const cipher_type &cipher, const block_type &plaintext) {
209 typedef detail::aead_encryption_policy<cipher_type, padding_type, allocator_type> encryption_policy;
210 typedef detail::aead_decryption_policy<cipher_type, padding_type, allocator_type> decryption_policy;
Definition: aead.hpp:135
policy_type::authenticated_data_type authenticated_data_type
Definition: aead.hpp:143
static std::size_t required_output_size(std::size_t inputlen)
Definition: aead.hpp:168
block_type end_message(const block_type &plaintext)
Definition: aead.hpp:164
authenticated_encryption_associated_data(const cipher_type &cipher, const AssociatedDataContainer &associated_data)
Definition: aead.hpp:150
block_type begin_message(const block_type &plaintext)
Definition: aead.hpp:156
constexpr static const std::size_t block_words
Definition: aead.hpp:146
authenticated_data_type ad
Definition: aead.hpp:178
constexpr static const std::size_t block_bits
Definition: aead.hpp:145
void schedule_associated_data(const AssociatedDataContainer &iad)
Definition: aead.hpp:174
cipher_type cipher
Definition: aead.hpp:180
policy_type::cipher_type cipher_type
Definition: aead.hpp:139
block_type process_block(const block_type &plaintext)
Definition: aead.hpp:160
cipher_type::block_type block_type
Definition: aead.hpp:147
cipher_type::key_type key_type
Definition: aead.hpp:142
policy_type::padding_type padding_type
Definition: aead.hpp:140
void pack(InputIterator first, InputIterator last, std::random_access_iterator_tag, OutputIterator out)
Packs elements from the range [first, last) into elements starting from out. Works for input containe...
Definition: block/include/nil/crypto3/detail/pack.hpp:835
boost::mpl::apply< AccumulatorSet, tag::block< Mode > >::type::result_type block(const AccumulatorSet &acc)
Definition: accumulators/block.hpp:259
Definition: pair.hpp:31
Definition: cipher.hpp:38
Definition: aead.hpp:213
detail::authenticated_encryption_associated_data< Policy< cipher_type, padding_type, allocator_type > > type
Definition: aead.hpp:216
Interface for AEAD (Authenticated Encryption with Associated Data) modes. These modes provide both en...
Definition: aead.hpp:202
detail::aead_decryption_policy< cipher_type, padding_type, allocator_type > decryption_policy
Definition: aead.hpp:210
Padding< Cipher > padding_type
Definition: aead.hpp:204
Cipher cipher_type
Definition: aead.hpp:203
detail::aead_encryption_policy< cipher_type, padding_type, allocator_type > encryption_policy
Definition: aead.hpp:209
Allocator< T > allocator_type
Definition: aead.hpp:207
Definition: aead.hpp:98
static block_type end_message(const cipher_type &cipher, const block_type &plaintext)
Definition: aead.hpp:123
policy_type::padding_type padding_type
Definition: aead.hpp:103
policy_type::cipher_type cipher_type
Definition: aead.hpp:102
aead_policy< Cipher, Padding, Allocator > policy_type
Definition: aead.hpp:100
constexpr static const std::size_t block_words
Definition: aead.hpp:108
constexpr static const std::size_t block_bits
Definition: aead.hpp:107
static block_type begin_message(const cipher_type &cipher, const block_type &plaintext)
Definition: aead.hpp:111
policy_type::block_type block_type
Definition: aead.hpp:109
static block_type process_block(const cipher_type &cipher, const block_type &plaintext)
Definition: aead.hpp:117
policy_type::associated_data_type associated_data_type
Definition: aead.hpp:105
Definition: aead.hpp:60
static block_type begin_message(const cipher_type &cipher, const block_type &plaintext)
Definition: aead.hpp:73
static block_type process_block(const cipher_type &cipher, const block_type &plaintext)
Definition: aead.hpp:79
policy_type::associated_data_type associated_data_type
Definition: aead.hpp:67
policy_type::padding_type padding_type
Definition: aead.hpp:65
constexpr static const std::size_t block_bits
Definition: aead.hpp:69
policy_type::block_type block_type
Definition: aead.hpp:71
aead_policy< Cipher, Padding, Allocator > policy_type
Definition: aead.hpp:62
policy_type::cipher_type cipher_type
Definition: aead.hpp:64
constexpr static const std::size_t block_words
Definition: aead.hpp:70
static block_type end_message(const cipher_type &cipher, const block_type &plaintext)
Definition: aead.hpp:85
Definition: aead.hpp:40
constexpr static const std::size_t block_words
Definition: aead.hpp:48
cipher_type::block_type block_type
Definition: aead.hpp:49
constexpr static const std::size_t block_bits
Definition: aead.hpp:47
Cipher cipher_type
Definition: aead.hpp:41
Padding padding_type
Definition: aead.hpp:42
std::vector< boost::uint_t< CHAR_BIT >, Allocator< boost::uint_t< CHAR_BIT > > > associated_data_type
Definition: aead.hpp:52
Allocator< T > allocator_type
Definition: aead.hpp:45