Searched refs:pkt_numlen (Results 1 - 8 of 8) sorted by relevance
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_ppe.c | 40 ppe->pkt_numlen = 0; in ngtcp2_ppe_init() 76 ppe->pkt_numlen = hd->pkt_numlen; in ngtcp2_ppe_encode_hd() 120 (uint16_t)(payloadlen + ppe->pkt_numlen + cc->aead.max_overhead)); in ngtcp2_ppe_final() 150 for (i = 0; i < ppe->pkt_numlen; ++i) { in ngtcp2_ppe_final() 229 return ngtcp2_buf_left(buf) >= (4 - ppe->pkt_numlen) + NGTCP2_HP_SAMPLELEN; in ngtcp2_ppe_ensure_hp_sample()
|
H A D | ngtcp2_conv.c | 96 int64_t ngtcp2_get_pkt_num(const uint8_t *p, size_t pkt_numlen) { in ngtcp2_get_pkt_num() argument 97 switch (pkt_numlen) { in ngtcp2_get_pkt_num()
|
H A D | ngtcp2_ppe.h | 50 /* pkt_numlen is the number of bytes used to encode a packet 52 size_t pkt_numlen; member
|
H A D | ngtcp2_conv.h | 78 * packet number is encoed in |pkt_numlen| bytes. 80 int64_t ngtcp2_get_pkt_num(const uint8_t *p, size_t pkt_numlen);
|
H A D | ngtcp2_pkt.c | 143 int64_t pkt_num, size_t pkt_numlen, uint32_t version, in ngtcp2_pkt_hd_init() 160 hd->pkt_numlen = pkt_numlen; in ngtcp2_pkt_hd_init() 303 dest->pkt_numlen = 0; in ngtcp2_pkt_decode_hd_long() 375 dest->pkt_numlen = 0; in ngtcp2_pkt_decode_hd_short() 392 len += NGTCP2_PKT_LENGTHLEN /* Length */ + hd->pkt_numlen; in ngtcp2_pkt_encode_hd_long() 407 (uint8_t)(hd->pkt_numlen - 1)); in ngtcp2_pkt_encode_hd_long() 433 p = ngtcp2_put_pkt_num(p, hd->pkt_num, hd->pkt_numlen); in ngtcp2_pkt_encode_hd_long() 444 size_t len = 1 + hd->dcid.datalen + hd->pkt_numlen; in ngtcp2_pkt_encode_hd_short() 452 *p = (uint8_t)(hd->pkt_numlen in ngtcp2_pkt_encode_hd_short() 141 ngtcp2_pkt_hd_init(ngtcp2_pkt_hd *hd, uint8_t flags, uint8_t type, const ngtcp2_cid *dcid, const ngtcp2_cid *scid, int64_t pkt_num, size_t pkt_numlen, uint32_t version, size_t len) ngtcp2_pkt_hd_init() argument [all...] |
H A D | ngtcp2_pkt.h | 413 * respectively. |pkt_numlen| is the number of bytes used to encode 420 int64_t pkt_num, size_t pkt_numlen, uint32_t version,
|
H A D | ngtcp2_conn.c | 5758 hd->pkt_numlen = (size_t)((dest[0] & NGTCP2_PKT_NUMLEN_MASK) + 1); in decrypt_hp() 5760 for (i = 0; i < hd->pkt_numlen; ++i) { in decrypt_hp() 5764 hd->pkt_num = ngtcp2_get_pkt_num(p - hd->pkt_numlen, hd->pkt_numlen); in decrypt_hp() 5989 * number is encoded in |pkt_numlen| bytes. 5991 static size_t pkt_num_bits(size_t pkt_numlen) { in pkt_num_bits() argument 5992 switch (pkt_numlen) { in pkt_num_bits() 6483 payloadlen = hd.len - hd.pkt_numlen; in conn_recv_handshake_pkt() 6486 pkt_num_bits(hd.pkt_numlen)); in conn_recv_handshake_pkt() 8887 pkt_num_bits(hd.pkt_numlen)); in conn_recv_pkt() [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/ |
H A D | ngtcp2.h | 1186 * :member:`pkt_numlen` is the number of bytes spent to encode 1189 size_t pkt_numlen; member 1191 * :member:`len` is the sum of :member:`pkt_numlen` and the length
|
Completed in 22 milliseconds