nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params > Struct Template Reference

#include <fixed_block_stream_processor.hpp>

+ Collaboration diagram for nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >:

Public Types

typedef StateAccumulator accumulator_type
 
typedef std::array< value_type, block_valuescache_type
 
typedef params_type::endian_type endian_type
 
typedef mode_type::input_block_type input_block_type
 
typedef input_block_type::value_type input_value_type
 
typedef Mode mode_type
 
typedef Params params_type
 
typedef boost::uint_t< value_bits >::least value_type
 

Public Member Functions

 BOOST_STATIC_ASSERT (input_block_bits % value_bits==0)
 
 fixed_block_stream_processor (accumulator_type &s)
 
template<typename ValueType >
void operator() (const std::initializer_list< ValueType > &il)
 
template<typename ValueType >
void operator() (const ValueType &value)
 
template<typename InputIterator >
void operator() (InputIterator b, InputIterator e)
 
template<typename InputIterator >
void operator() (InputIterator b, InputIterator e, std::random_access_iterator_tag)
 
template<typename InputIterator , typename Category >
void operator() (InputIterator first, InputIterator last, Category)
 
void reset ()
 
virtual ~fixed_block_stream_processor ()
 

Public Attributes

cache_type cache
 
length_type seen
 
accumulator_typestate
 

Static Public Attributes

constexpr static const std::size_t block_values = input_block_bits / value_bits
 
constexpr static const std::size_t input_block_bits = mode_type::input_block_bits
 
constexpr static const std::size_t input_value_bits = mode_type::input_value_bits
 
constexpr static const std::size_t value_bits = params_type::value_bits
 

Member Typedef Documentation

◆ accumulator_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef StateAccumulator nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::accumulator_type

◆ cache_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef std::array<value_type, block_values> nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::cache_type

◆ endian_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef params_type::endian_type nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::endian_type

◆ input_block_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef mode_type::input_block_type nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::input_block_type

◆ input_value_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef input_block_type::value_type nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::input_value_type

◆ mode_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef Mode nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::mode_type

◆ params_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef Params nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::params_type

◆ value_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef boost::uint_t<value_bits>::least nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::value_type

Constructor & Destructor Documentation

◆ fixed_block_stream_processor()

template<typename Mode , typename StateAccumulator , typename Params >
nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::fixed_block_stream_processor ( accumulator_type s)
inline

◆ ~fixed_block_stream_processor()

template<typename Mode , typename StateAccumulator , typename Params >
virtual nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::~fixed_block_stream_processor ( )
inlinevirtual

Member Function Documentation

◆ BOOST_STATIC_ASSERT()

template<typename Mode , typename StateAccumulator , typename Params >
nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::BOOST_STATIC_ASSERT ( input_block_bits value_bits = =0)

◆ operator()() [1/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename ValueType >
void nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( const std::initializer_list< ValueType > &  il)
inline

◆ operator()() [2/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename ValueType >
void nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( const ValueType &  value)
inline

◆ operator()() [3/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename InputIterator >
void nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( InputIterator  b,
InputIterator  e 
)
inline

◆ operator()() [4/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename InputIterator >
void nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( InputIterator  b,
InputIterator  e,
std::random_access_iterator_tag   
)
inline

◆ operator()() [5/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename InputIterator , typename Category >
void nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( InputIterator  first,
InputIterator  last,
Category   
)
inline

◆ reset()

template<typename Mode , typename StateAccumulator , typename Params >
void nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::reset ( )
inline

Member Data Documentation

◆ block_values

template<typename Mode , typename StateAccumulator , typename Params >
constexpr static const std::size_t nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::block_values = input_block_bits / value_bits
staticconstexpr

◆ cache

template<typename Mode , typename StateAccumulator , typename Params >
cache_type nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::cache

◆ input_block_bits

template<typename Mode , typename StateAccumulator , typename Params >
constexpr static const std::size_t nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::input_block_bits = mode_type::input_block_bits
staticconstexpr

◆ input_value_bits

template<typename Mode , typename StateAccumulator , typename Params >
constexpr static const std::size_t nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::input_value_bits = mode_type::input_value_bits
staticconstexpr

◆ seen

template<typename Mode , typename StateAccumulator , typename Params >
length_type nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::seen

◆ state

template<typename Mode , typename StateAccumulator , typename Params >
accumulator_type& nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::state

◆ value_bits

template<typename Mode , typename StateAccumulator , typename Params >
constexpr static const std::size_t nil::crypto3::codec::fixed_block_stream_processor< Mode, StateAccumulator, Params >::value_bits = params_type::value_bits
staticconstexpr

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