35 const std::string& client_identity,
39 hmac->set_key(secret_key);
41 hmac->update_be(
static_cast<uint64_t
>(client_hello_bits.size()));
42 hmac->update(client_hello_bits);
43 hmac->update_be(
static_cast<uint64_t
>(client_identity.size()));
44 hmac->update(client_identity);
46 m_cookie.resize(hmac->output_length());
47 hmac->final(m_cookie.data());