Lines Matching defs:token
173 const uint8_t *token = nullptr;
218 switch (hd.token[0]) {
221 // Initial packets with Retry token must have DCID chosen by
229 if (verify_retry_token(odcid, hd.token, hd.tokenlen, hd.version,
233 LOG(INFO) << "Failed to validate Retry token from remote="
246 LOG(INFO) << "Successfully validated Retry token from remote="
251 token = hd.token;
258 // If a token is a regular token, it must be at least
266 LOG(INFO) << "Failed to validate token from remote="
281 *qkms.get(), hd.token[NGTCP2_CRYPTO_MAX_REGULAR_TOKENLEN]);
283 if (verify_token(hd.token, hd.tokenlen - 1, &remote_addr.su.sa,
287 LOG(INFO) << "Failed to validate token from remote="
302 LOG(INFO) << "Successfully validated token from remote="
306 token = hd.token;
348 token, tokenlen, token_type);
370 const uint8_t *token, size_t tokenlen, ngtcp2_token_type token_type) {
421 if (upstream->init(faddr, remote_addr, local_addr, hd, odcid, token, tokenlen,
486 std::array<uint8_t, NGTCP2_CRYPTO_MAX_RETRY_TOKENLEN> token;
493 if (generate_retry_token(token.data(), tokenlen, version, &remote_addr.su.sa,
504 &retry_scid, &idcid, token.data(), tokenlen);
585 std::array<uint8_t, NGTCP2_STATELESS_RESET_TOKENLEN> token;
594 rv = generate_quic_stateless_reset_token(token.data(), cid, qkm.secret.data(),
609 ngtcp2_pkt_write_stateless_reset(buf.data(), buf.size(), token.data(),