Lines Matching refs:pn_len
445 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()
523 let sample = &payload[4 - pn_len..16 + (4 - pn_len)]; in encrypt_hdr()
537 let pn_buf = rest.slice_last(pn_len)?; in encrypt_hdr()
538 for i in 0..pn_len { in encrypt_hdr()
546 b: &mut octets::OctetsMut, pn: u64, pn_len: usize, payload_len: usize, in encrypt_pkt()
555 encrypt_hdr(&mut header, pn_len, ciphertext, aead)?; in encrypt_pkt()
1526 header: &mut [u8], dcid: &[u8], frames: &[u8], pn: u64, pn_len: usize, in assert_encrypt_initial_pkt()
1552 encrypt_pkt(&mut b, pn, pn_len, payload_len, payload_offset, &aead) in assert_encrypt_initial_pkt()
2153 let pn_len = 3; in encrypt_chacha20() localVariable
2166 encrypt_pkt(&mut b, pn, pn_len, payload_len, payload_offset, &aead) in encrypt_chacha20()