hmac.hpp
Go to the documentation of this file.
60 using is_key_type = typename std::enable_if<std::is_same<std::uint8_t, ValueType>::value, bool>::type;
65 typedef std::pair<std::array<std::uint8_t, block_octets>, std::array<std::uint8_t, block_octets>>
95 inline void update(internal_accumulator_type &i_acc, InputIterator first, InputIterator last) const {
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::mac< ProcessingPolicy > >::type::result_type mac(const AccumulatorSet &acc)
Definition: accumulators/mac.hpp:99
constexpr std::enable_if< std::is_same< typename std::iterator_traits< InputIterator1 >::value_type, typename std::iterator_traits< InputIterator2 >::value_type >::value, OutputIterator >::type strxor(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator out)
Definition: algebra/include/nil/crypto3/algebra/algorithms/strxor.hpp:42
typename std::iterator_traits< Iterator >::value_type ValueType
Definition: algebra/include/nil/crypto3/detail/make_array.hpp:50
Definition: pair.hpp:31
Definition: hash_state.hpp:43
Definition: hmac.hpp:47
typename std::enable_if< std::is_same< std::uint8_t, ValueType >::value, bool >::type is_key_type
Definition: hmac.hpp:60
constexpr static const std::size_t block_bits
Definition: hmac.hpp:50
std::pair< std::array< std::uint8_t, block_octets >, std::array< std::uint8_t, block_octets > > schedule_key_type
Definition: hmac.hpp:66
constexpr static const std::size_t block_octets
Definition: hmac.hpp:52
constexpr static const std::size_t block_words
Definition: hmac.hpp:51
constexpr static const std::size_t digest_bits
Definition: hmac.hpp:55
digest_type compute(internal_accumulator_type &i_acc) const
Definition: hmac.hpp:99
void init_accumulator(internal_accumulator_type &i_acc) const
Definition: hmac.hpp:85
static schedule_key_type process_schedule_key(const KeyRange &key)
Definition: hmac.hpp:110
accumulator_set< hash_type > internal_accumulator_type
Definition: hmac.hpp:77
schedule_key_type schedule_key
Definition: hmac.hpp:138
hmac< Hash > policy_type
Definition: hmac.hpp:71
mac_key(const KeyRange &key)
Definition: hmac.hpp:82
void update(internal_accumulator_type &i_acc, InputRange range) const
Definition: hmac.hpp:90
void update(internal_accumulator_type &i_acc, InputIterator first, InputIterator last) const
Definition: hmac.hpp:95
policy_type::digest_type digest_type
Definition: hmac.hpp:74
policy_type::hash_type hash_type
Definition: hmac.hpp:73
policy_type::schedule_key_type schedule_key_type
Definition: hmac.hpp:75
Mac key - a key that can be used to create and verify MAC.
Definition: mac_key.hpp:41