Home
last modified time | relevance | path

Searched refs:pn_len (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/quiche/src/
Dpacket.rs445 let pn_len = usize::from((first & PKT_NUM_MASK) + 1); in decrypt_hdr() localVariable
447 let ciphertext = &mut ciphertext[..pn_len]; in decrypt_hdr()
449 for i in 0..pn_len { in decrypt_hdr()
454 let pn = match pn_len { in decrypt_hdr()
471 hdr.pkt_num_len = pn_len; in decrypt_hdr()
480 pub fn decode_pkt_num(largest_pn: u64, truncated_pn: u64, pn_len: usize) -> u64 { in decode_pkt_num()
481 let pn_nbits = pn_len * 8; in decode_pkt_num()
501 b: &'a mut octets::OctetsMut, pn: u64, pn_len: usize, payload_len: usize, in decrypt_pkt()
509 .checked_sub(pn_len) in decrypt_pkt()
521 b: &mut octets::OctetsMut, pn_len: usize, payload: &[u8], aead: &crypto::Seal, in encrypt_hdr()
[all …]
Dlib.rs1674 let pn_len = hdr.pkt_num_len; in recv_single() localVariable
1711 pn_len, in recv_single()
2038 let pn_len = packet::pkt_num_len(pn)?; in send() localVariable
2059 pkt_num_len: pn_len, in send()
2078 let mut overhead = b.off() + pn_len + crypto_overhead; in send()
2447 let pkt_len = pn_len + payload_len + crypto_overhead; in send()
2477 let len = pn_len + payload_len; in send()
2541 pn_len, in send()
4670 let pn_len = packet::pkt_num_len(pn)?; in encode_pkt() localVariable
4678 pkt_num_len: pn_len, in encode_pkt()
[all …]