18#ifndef TRINITY_SESSIONKEYGENERATOR_HPP
19#define TRINITY_SESSIONKEYGENERATOR_HPP
23template <
typename Hash>
31 uint8 const* data = std::data(buf);
33 size_t const halflen = (len / 2);
35 o1 = Hash::GetDigestOf(data, halflen);
36 o2 = Hash::GetDigestOf(data + halflen, len - halflen);
42 for (
uint32 i = 0; i < sz; ++i)
55 typename Hash::Digest
o0 = { };
56 typename Hash::Digest
o1 = { };
57 typename Hash::Digest
o2 = { };
58 typename Hash::Digest::const_iterator
o0it;
void Generate(uint8 *buf, uint32 sz)
Hash::Digest::const_iterator o0it
SessionKeyGenerator(C const &buf)
constexpr std::size_t size()