merkle_damgard_construction.hpp
Go to the documentation of this file.
92 inline merkle_damgard_construction &process_block(const block_type &block, Integer seen = Integer()) {
158 pack<endian_type, endian_type, length_bits, word_bits>(length_array.begin(), length_array.end(),
Definition: merkle_damgard_construction.hpp:55
BOOST_STATIC_ASSERT(!length_bits||length_bits % word_bits==0)
compressor_functor::state_type state_type
Definition: merkle_damgard_construction.hpp:69
Padding padding_functor
Definition: merkle_damgard_construction.hpp:59
constexpr static const std::size_t block_bits
Definition: merkle_damgard_construction.hpp:71
const state_type & state() const
Definition: merkle_damgard_construction.hpp:146
IV iv_generator
Definition: merkle_damgard_construction.hpp:57
merkle_damgard_construction()
Definition: merkle_damgard_construction.hpp:133
constexpr static const std::size_t digest_bytes
Definition: merkle_damgard_construction.hpp:76
constexpr static const std::size_t state_bits
Definition: merkle_damgard_construction.hpp:67
constexpr static const std::size_t block_words
Definition: merkle_damgard_construction.hpp:72
boost::uint_t< length_type_bits >::least length_type
Definition: merkle_damgard_construction.hpp:86
void reset()
Definition: merkle_damgard_construction.hpp:141
constexpr static const std::size_t word_bits
Definition: merkle_damgard_construction.hpp:64
static_digest< digest_bits > digest_type
Definition: merkle_damgard_construction.hpp:78
compressor_functor::word_type word_type
Definition: merkle_damgard_construction.hpp:65
state_type state_
Definition: merkle_damgard_construction.hpp:170
constexpr static const std::size_t state_words
Definition: merkle_damgard_construction.hpp:68
constexpr static const std::size_t length_bits
Definition: merkle_damgard_construction.hpp:81
constexpr static const std::size_t length_words
Definition: merkle_damgard_construction.hpp:87
Params::digest_endian endian_type
Definition: merkle_damgard_construction.hpp:62
std::enable_if<!(length_bits &&sizeof(Dummy))>::type append_length(block_type &block, length_type length)
Definition: merkle_damgard_construction.hpp:166
std::enable_if< length_bits &&sizeof(Dummy)>::type append_length(block_type &block, length_type length)
Definition: merkle_damgard_construction.hpp:152
void reset(const state_type &s)
Definition: merkle_damgard_construction.hpp:137
Finalizer finalizer_functor
Definition: merkle_damgard_construction.hpp:60
constexpr static const std::size_t digest_bits
Definition: merkle_damgard_construction.hpp:75
merkle_damgard_construction & process_block(const block_type &block, Integer seen=Integer())
Definition: merkle_damgard_construction.hpp:92
digest_type digest(const block_type &block=block_type(), length_type total_seen=length_type())
Definition: merkle_damgard_construction.hpp:97
Compressor compressor_functor
Definition: merkle_damgard_construction.hpp:58
compressor_functor::block_type block_type
Definition: merkle_damgard_construction.hpp:73
constexpr static const std::size_t digest_words
Definition: merkle_damgard_construction.hpp:77
constexpr static const std::size_t length_type_bits
Definition: merkle_damgard_construction.hpp:83
Definition: block/include/nil/crypto3/detail/static_digest.hpp:72
constexpr matrix< T, N, M > fill(T value)
generates a matrix containing a single value
Definition: matrix/utility.hpp:102
boost::mpl::apply< AccumulatorSet, tag::block< Mode > >::type::result_type block(const AccumulatorSet &acc)
Definition: accumulators/block.hpp:259
Definition: algebra/include/nil/crypto3/detail/make_array.hpp:33
Definition: pair.hpp:31