33 std::string_view client_identity,
36 hmac->set_key(secret_key);
38 hmac->update_be(
static_cast<uint64_t
>(client_hello_bits.size()));
39 hmac->update(client_hello_bits);
40 hmac->update_be(
static_cast<uint64_t
>(client_identity.size()));
41 hmac->update(client_identity);
43 m_cookie.resize(hmac->output_length());
44 hmac->final(m_cookie.data());