Public Types |
Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
List of all members
nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator > Struct Template Reference
#include <ocb.hpp>
Collaboration diagram for nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >:
Public Types | |
template<typename T > | |
using | allocator_type = Allocator< T > |
typedef std::vector< boost::uint_t< CHAR_BIT >, allocator_type< boost::uint_t< CHAR_BIT > > > | associated_data_type |
typedef cipher_type::block_type | block_type |
typedef BlockCipher | cipher_type |
typedef Padding | padding_type |
Public Member Functions | |
BOOST_STATIC_ASSERT (block_bits==128||block_bits==192||block_bits==256||block_bits==512) | |
BOOST_STATIC_ASSERT (tag_bits % 4==0) | |
BOOST_STATIC_ASSERT (tag_bits >=CHAR_BIT &&tag_bits<=32) | |
BOOST_STATIC_ASSERT (tag_bits<=block_bits) | |
void | update_nonce (const uint8_t nonce[], size_t nonce_len) |
Static Public Member Functions | |
static block_type | begin_message (const cipher_type &cipher, const block_type &plaintext) |
static secure_vector< uint8_t > | hash (const L_computer< cipher_type > &L, const cipher_type &cipher, const associated_data_type &ad) |
Static Public Attributes | |
constexpr static const std::size_t | block_bits = cipher_type::block_bits |
constexpr static const std::size_t | block_words = cipher_type::block_words |
constexpr static const std::size_t | tag_bits = TagBits |
Member Typedef Documentation
◆ allocator_type
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
template<typename T >
using nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::allocator_type = Allocator<T> |
◆ associated_data_type
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
typedef std::vector<boost::uint_t<CHAR_BIT>, allocator_type<boost::uint_t<CHAR_BIT> > > nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::associated_data_type |
◆ block_type
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
typedef cipher_type::block_type nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::block_type |
◆ cipher_type
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
typedef BlockCipher nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::cipher_type |
◆ padding_type
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
typedef Padding nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::padding_type |
Member Function Documentation
◆ begin_message()
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
|
inlinestatic |
◆ BOOST_STATIC_ASSERT() [1/4]
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::BOOST_STATIC_ASSERT | ( | block_bits | = =128||block_bits==192||block_bits==256||block_bits==512 | ) |
◆ BOOST_STATIC_ASSERT() [2/4]
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::BOOST_STATIC_ASSERT | ( | tag_bits % | 4 = =0 | ) |
◆ BOOST_STATIC_ASSERT() [3/4]
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::BOOST_STATIC_ASSERT | ( | tag_bits >=CHAR_BIT &&tag_bits<= | 32 | ) |
◆ BOOST_STATIC_ASSERT() [4/4]
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
nil::crypto3::block::modes::detail::ocb_policy< BlockCipher, Padding, TagBits, Allocator >::BOOST_STATIC_ASSERT | ( | tag_bits<= | block_bits | ) |
◆ hash()
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
|
inlinestatic |
◆ update_nonce()
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
|
inline |
Member Data Documentation
◆ block_bits
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
|
staticconstexpr |
◆ block_words
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
|
staticconstexpr |
◆ tag_bits
template<typename BlockCipher , typename Padding , std::size_t TagBits, template< typename > class Allocator = std::allocator>
|
staticconstexpr |
The documentation for this struct was generated from the following file: