Lines Matching refs:enc_pn

705 int ossl_quic_wire_decode_pkt_hdr_pn(const unsigned char *enc_pn,  in ossl_quic_wire_decode_pkt_hdr_pn()  argument
714 truncated_pn = enc_pn[0]; in ossl_quic_wire_decode_pkt_hdr_pn()
717 truncated_pn = ((QUIC_PN)enc_pn[0] << 8) in ossl_quic_wire_decode_pkt_hdr_pn()
718 | (QUIC_PN)enc_pn[1]; in ossl_quic_wire_decode_pkt_hdr_pn()
721 truncated_pn = ((QUIC_PN)enc_pn[0] << 16) in ossl_quic_wire_decode_pkt_hdr_pn()
722 | ((QUIC_PN)enc_pn[1] << 8) in ossl_quic_wire_decode_pkt_hdr_pn()
723 | (QUIC_PN)enc_pn[2]; in ossl_quic_wire_decode_pkt_hdr_pn()
726 truncated_pn = ((QUIC_PN)enc_pn[0] << 24) in ossl_quic_wire_decode_pkt_hdr_pn()
727 | ((QUIC_PN)enc_pn[1] << 16) in ossl_quic_wire_decode_pkt_hdr_pn()
728 | ((QUIC_PN)enc_pn[2] << 8) in ossl_quic_wire_decode_pkt_hdr_pn()
729 | (QUIC_PN)enc_pn[3]; in ossl_quic_wire_decode_pkt_hdr_pn()
773 unsigned char *enc_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()