Lines Matching refs:pn
193 unsigned char *pn = NULL; in ossl_quic_wire_decode_pkt_hdr() local
245 memset(hdr->pn, 0, sizeof(hdr->pn)); in ossl_quic_wire_decode_pkt_hdr()
246 pn = (unsigned char *)PACKET_data(pkt); in ossl_quic_wire_decode_pkt_hdr()
248 if (!PACKET_forward(pkt, sizeof(hdr->pn))) in ossl_quic_wire_decode_pkt_hdr()
251 if (!PACKET_copy_bytes(pkt, hdr->pn, hdr->pn_len)) in ossl_quic_wire_decode_pkt_hdr()
330 memset(hdr->pn, 0, sizeof(hdr->pn)); in ossl_quic_wire_decode_pkt_hdr()
395 memset(hdr->pn, 0, sizeof(hdr->pn)); in ossl_quic_wire_decode_pkt_hdr()
407 || len < sizeof(hdr->pn)) in ossl_quic_wire_decode_pkt_hdr()
419 pn = (unsigned char *)PACKET_data(pkt); in ossl_quic_wire_decode_pkt_hdr()
420 memset(hdr->pn, 0, sizeof(hdr->pn)); in ossl_quic_wire_decode_pkt_hdr()
422 if (!PACKET_forward(pkt, sizeof(hdr->pn))) in ossl_quic_wire_decode_pkt_hdr()
425 hdr->len = (size_t)(len - sizeof(hdr->pn)); in ossl_quic_wire_decode_pkt_hdr()
427 if (!PACKET_copy_bytes(pkt, hdr->pn, hdr->pn_len)) in ossl_quic_wire_decode_pkt_hdr()
447 ptrs->raw_pn = pn; in ossl_quic_wire_decode_pkt_hdr()
448 if (pn != NULL) { in ossl_quic_wire_decode_pkt_hdr()
449 ptrs->raw_sample = pn + 4; in ossl_quic_wire_decode_pkt_hdr()
506 || !WPACKET_memcpy(pkt, hdr->pn, hdr->pn_len)) in ossl_quic_wire_encode_pkt_hdr()
573 || !WPACKET_memcpy(pkt, hdr->pn, hdr->pn_len)) in ossl_quic_wire_encode_pkt_hdr()
753 int ossl_quic_wire_determine_pn_len(QUIC_PN pn, in ossl_quic_wire_determine_pn_len() argument
757 = (largest_acked == QUIC_PN_INVALID) ? pn + 1 : pn - largest_acked; in ossl_quic_wire_determine_pn_len()
772 int ossl_quic_wire_encode_pkt_hdr_pn(QUIC_PN pn, in ossl_quic_wire_encode_pkt_hdr_pn() argument
778 enc_pn[0] = (unsigned char)pn; in ossl_quic_wire_encode_pkt_hdr_pn()
781 enc_pn[1] = (unsigned char)pn; in ossl_quic_wire_encode_pkt_hdr_pn()
782 enc_pn[0] = (unsigned char)(pn >> 8); in ossl_quic_wire_encode_pkt_hdr_pn()
785 enc_pn[2] = (unsigned char)pn; in ossl_quic_wire_encode_pkt_hdr_pn()
786 enc_pn[1] = (unsigned char)(pn >> 8); in ossl_quic_wire_encode_pkt_hdr_pn()
787 enc_pn[0] = (unsigned char)(pn >> 16); in ossl_quic_wire_encode_pkt_hdr_pn()
790 enc_pn[3] = (unsigned char)pn; in ossl_quic_wire_encode_pkt_hdr_pn()
791 enc_pn[2] = (unsigned char)(pn >> 8); in ossl_quic_wire_encode_pkt_hdr_pn()
792 enc_pn[1] = (unsigned char)(pn >> 16); in ossl_quic_wire_encode_pkt_hdr_pn()
793 enc_pn[0] = (unsigned char)(pn >> 24); in ossl_quic_wire_encode_pkt_hdr_pn()