34 std::string_view client_identity,
37 hmac->set_key(secret_key);
39 hmac->update_be(
static_cast<uint64_t
>(client_hello_bits.size()));
40 hmac->update(client_hello_bits);
41 hmac->update_be(
static_cast<uint64_t
>(client_identity.size()));
42 hmac->update(client_identity);
44 m_cookie.resize(hmac->output_length());
45 hmac->final(m_cookie.data());