kdf/include/nil/crypto3/kdf/algorithm/derive.hpp
Go to the documentation of this file.
1 #ifndef CRYPTO3_KDF_HPP
2 #define CRYPTO3_KDF_HPP
3 
6 
7 #include <nil/crypto3/detail/type_traits.hpp>
8 
9 namespace nil {
10  namespace crypto3 {
11  namespace kdf {
44  template<typename Kdf, typename InputIterator, typename OutputIterator>
45  typename std::enable_if<!boost::accumulators::detail::is_accumulator_set<OutputIterator>::value,
46  OutputIterator>::type
47  derive(InputIterator first, InputIterator last, OutputIterator out) {
48  }
49 
63  template<typename Kdf, typename InputIterator, typename KdfAccumulator = typename kdf::accumulator_set<Kdf>>
64  typename std::enable_if<boost::accumulators::detail::is_accumulator_set<KdfAccumulator>::value,
65  KdfAccumulator>::type &
66  derive(InputIterator first, InputIterator last, KdfAccumulator &acc) {
67  }
68 
83  template<typename Kdf, typename SinglePassRange, typename OutputIterator>
84  OutputIterator derive(const SinglePassRange &rng, OutputIterator out) {
85  }
86 
99  template<typename Kdf, typename SinglePassRange,
100  typename KdfAccumulator = typename kdf::accumulator_set<Kdf>>
101  typename std::enable_if<boost::accumulators::detail::is_accumulator_set<KdfAccumulator>::value,
102  KdfAccumulator>::type &
103  derive(const SinglePassRange &rng, KdfAccumulator &kdf) {
104  }
105  } // namespace kdf
106  } // namespace crypto3
107 } // namespace nil
108 
109 #endif // CRYPTO3_KDF_HPP
std::enable_if<!boost::accumulators::detail::is_accumulator_set< OutputIterator >::value, OutputIterator >::type derive(InputIterator first, InputIterator last, OutputIterator out)
Definition: kdf/include/nil/crypto3/kdf/algorithm/derive.hpp:47
boost::mpl::apply< AccumulatorSet, tag::kdf< Mode > >::type::result_type kdf(const AccumulatorSet &acc)
Definition: kdf.hpp:177
boost::accumulators::accumulator_set< digest< KeyDerivationFunction::input_block_bits >, boost::accumulators::features< accumulators::tag::hash< typename KeyDerivationFunction::hash_type >, accumulators::tag::kdf< KeyDerivationFunction > >> accumulator_set
Definition: kdf_state.hpp:41
Definition: pair.hpp:31