Home
last modified time | relevance | path

Searched refs:pn (Results 1 – 25 of 28) sorted by relevance

12

/openssl/ssl/quic/
H A Dquic_wire_pkt.c193 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()
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()
420 memset(hdr->pn, 0, sizeof(hdr->pn)); 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()
757 = (largest_acked == QUIC_PN_INVALID) ? pn + 1 : pn - largest_acked; in ossl_quic_wire_determine_pn_len()
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()
[all …]
H A Dquic_record_rx.c53 QUIC_PN pn; member
533 &rxe->pn)) in qrx_validate_hdr()
663 QUIC_PN pn, uint32_t enc_level, in qrx_decrypt_pkt_body() argument
696 if (is_old_key && pn >= qrx->cur_epoch_start_pn) in qrx_decrypt_pkt_body()
774 qrx->cur_epoch_start_pn = pn; in qrx_key_update_initiated()
777 qrx->key_update_cb(pn, qrx->key_update_cb_arg); in qrx_key_update_initiated()
866 rxe->pn = QUIC_PN_INVALID; in qrx_process_pkt()
1021 qrx_key_update_initiated(qrx, rxe->pn); in qrx_process_pkt()
1052 if (rxe->pn > qrx->largest_pn[pn_space]) in qrx_process_pkt()
1053 qrx->largest_pn[pn_space] = rxe->pn; in qrx_process_pkt()
[all …]
H A Dquic_ackm.c441 QUIC_PN pn) in rx_pkt_history_add_pn() argument
445 r.start = pn; in rx_pkt_history_add_pn()
446 r.end = pn; in rx_pkt_history_add_pn()
448 if (pn < h->watermark) in rx_pkt_history_add_pn()
657 static int range_contains(const OSSL_QUIC_ACK_RANGE *range, QUIC_PN pn) in range_contains() argument
659 return pn >= range->start && pn <= range->end; in range_contains()
1346 int ossl_ackm_get_largest_unacked(OSSL_ACKM *ackm, int pkt_space, QUIC_PN *pn) in ossl_ackm_get_largest_unacked() argument
1354 *pn = p->pkt_num; in ossl_ackm_get_largest_unacked()
1658 return pn >= h->watermark && ossl_uint_set_query(&h->set, pn) == 0; in ossl_ackm_is_rx_pn_processable()
1681 int pkt_space, QUIC_PN pn) in ossl_ackm_mark_packet_pseudo_lost() argument
[all …]
H A Dqlog_event_helpers.c568 QUIC_PN pn, in log_packet() argument
582 QLOG_U64("packet_number", pn); in log_packet()
610 QUIC_PN pn, in ossl_qlog_event_transport_packet_sent() argument
617 log_packet(qlog, hdr, pn, iovec, num_iovec, datagram_id); in ossl_qlog_event_transport_packet_sent()
624 QUIC_PN pn, in ossl_qlog_event_transport_packet_received() argument
631 log_packet(qlog, hdr, pn, iovec, num_iovec, datagram_id); in ossl_qlog_event_transport_packet_received()
H A Dquic_record_tx.c489 uint32_t enc_level, QUIC_PN pn, in qtx_encrypt_into_txe() argument
535 nonce[nonce_len - i - 1] ^= (unsigned char)(pn >> (i * 8)); in qtx_encrypt_into_txe()
674 if (!ossl_quic_wire_encode_pkt_hdr_pn(pkt->pn, in qtx_write()
675 hdr->pn, in qtx_write()
708 if (!qtx_encrypt_into_txe(qtx, &cur, txe, enc_level, pkt->pn, in qtx_write()
776 ossl_qlog_event_transport_packet_sent(qtx_get_qlog(qtx), hdr, pkt->pn, in qtx_mutate_write()
H A Dquic_channel.c84 static int rx_late_validate(QUIC_PN pn, int pn_space, void *arg);
85 static void rxku_detected(QUIC_PN pn, void *arg);
617 static int rx_late_validate(QUIC_PN pn, int pn_space, void *arg) in rx_late_validate() argument
622 if (!ossl_ackm_is_rx_pn_processable(ch->ackm, pn, pn_space)) in rx_late_validate()
756 static void rxku_detected(QUIC_PN pn, void *arg) in rxku_detected() argument
798 ch->rxku_trigger_pn = pn; in rxku_detected()
2212 ch->qrx_pkt->pn, &iovec, 1, in ch_rx_handle_packet()
2284 && ch->qrx_pkt->pn >= ch->rxku_trigger_pn in ch_rx_handle_packet()
H A Dquic_wire.c19 int ossl_quic_frame_ack_contains_pn(const OSSL_QUIC_FRAME_ACK *ack, QUIC_PN pn) in OSSL_SAFE_MATH_UNSIGNED()
24 if (pn >= ack->ack_ranges[i].start in OSSL_SAFE_MATH_UNSIGNED()
25 && pn <= ack->ack_ranges[i].end) in OSSL_SAFE_MATH_UNSIGNED()
H A Dquic_trace.c616 BIO_printf(bio, "%02x", hdr.pn[i]); in ossl_quic_trace()
H A Dquic_rx_depack.c1434 ackm_data.pkt_num = qpacket->pn; in ossl_quic_handle_frames()
/openssl/test/
H A Dquic_ackm_test.c487 QUIC_PN pn; /* PKT, ACK */ member
492 #define TX_OP_PKT(advance, pn, num_pn) \ argument
494 #define TX_OP_ACK(advance, pn, num_pn) \ argument
548 tx->pkt_num = s->pn + i; in test_tx_ack_time_script()
574 ack_range.start = s->pn; in test_tx_ack_time_script()
575 ack_range.end = s->pn + s->num_pn; in test_tx_ack_time_script()
954 pkt.pkt_num = s->pn + i; in test_rx_ack_actual()
1027 tx->pkt_num = s->pn; in test_rx_ack_actual()
1049 rx_ack_range.start = s->pn; in test_rx_ack_actual()
1050 rx_ack_range.end = s->pn + s->num_pn - 1; in test_rx_ack_actual()
[all …]
H A Dquic_record_test_util.h35 || !TEST_mem_eq(a->pn, sizeof(a->pn), b->pn, sizeof(b->pn)) in cmp_pkt_hdr()
H A Drsa_test.c512 BIGNUM *pn = NULL, *pe = NULL, *pd= NULL; in load_key() local
561 pn = BN_bin2bn(n, sizeof(n), NULL); in load_key()
565 if (!TEST_false(pn == NULL in load_key()
568 || !RSA_set0_key(rsa, pn, pe, pd))) { in load_key()
569 BN_free(pn); in load_key()
H A Dquic_wire_test.c1457 QUIC_PN pn, tx_largest_acked, rx_largest_pn; member
1494 pn_len = ossl_quic_wire_determine_pn_len(t->pn, t->tx_largest_acked); in test_wire_pkt_hdr_pn()
1498 if (!TEST_true(ossl_quic_wire_encode_pkt_hdr_pn(t->pn, buf, pn_len))) in test_wire_pkt_hdr_pn()
1508 if (!TEST_uint64_t_eq(res_pn, t->pn)) in test_wire_pkt_hdr_pn()
/openssl/include/internal/
H A Dlist.h37 # define OSSL_LIST_FOREACH_DELSAFE_FROM(p, pn, name, init) \ argument
39 (p) != NULL && (((pn) = ossl_list_##name##_next(p)), 1); \
40 (p) = (pn))
41 #define OSSL_LIST_FOREACH_DELSAFE(p, pn, name, l) \ argument
42 OSSL_LIST_FOREACH_DELSAFE_FROM(p, pn, name, ossl_list_##name##_head(l))
44 # define OSSL_LIST_FOREACH_REV_DELSAFE_FROM(p, pn, name, init) \ argument
46 (p) != NULL && (((pn) = ossl_list_##name##_prev(p)), 1); \
47 (p) = (pn))
48 # define OSSL_LIST_FOREACH_REV_DELSAFE(p, pn, name, l) \ argument
49 OSSL_LIST_FOREACH_REV_DELSAFE_FROM(p, pn, name, ossl_list_##name##_tail(l))
H A Dquic_record_rx.h212 QUIC_PN pn; member
304 typedef int (ossl_qrx_late_validation_cb)(QUIC_PN pn, int pn_space,
494 typedef void (ossl_qrx_key_update_cb)(QUIC_PN pn, void *arg);
H A Dquic_ackm.h230 int ossl_ackm_is_rx_pn_processable(OSSL_ACKM *ackm, QUIC_PN pn, int pkt_space);
271 int ossl_ackm_get_largest_unacked(OSSL_ACKM *ackm, int pkt_space, QUIC_PN *pn);
283 int pkt_space, QUIC_PN pn);
H A Dqlog_event_helpers.h43 QUIC_PN pn,
51 QUIC_PN pn,
H A Dquic_wire_pkt.h381 unsigned char pn[4]; member
567 int ossl_quic_wire_determine_pn_len(QUIC_PN pn, QUIC_PN largest_acked);
577 int ossl_quic_wire_encode_pkt_hdr_pn(QUIC_PN pn,
H A Dquic_types.h69 static ossl_unused ossl_inline int ossl_quic_pn_valid(QUIC_PN pn) in ossl_quic_pn_valid() argument
71 return pn < (((QUIC_PN)1) << 62); in ossl_quic_pn_valid()
H A Dquic_record_tx.h185 QUIC_PN pn; member
H A Dquic_wire.h165 int ossl_quic_frame_ack_contains_pn(const OSSL_QUIC_FRAME_ACK *ack, QUIC_PN pn);
/openssl/crypto/ec/curve448/
H A Dcurve448.c168 static void add_pniels_to_pt(curve448_point_t p, const pniels_t pn, in add_pniels_to_pt() argument
173 ossl_gf_mul(L0, p->z, pn->z); in add_pniels_to_pt()
175 add_niels_to_pt(p, pn->n, before_double); in add_pniels_to_pt()
178 static void sub_pniels_from_pt(curve448_point_t p, const pniels_t pn, in sub_pniels_from_pt() argument
183 ossl_gf_mul(L0, p->z, pn->z); in sub_pniels_from_pt()
185 sub_niels_from_pt(p, pn->n, before_double); in sub_pniels_from_pt()
/openssl/crypto/bn/asm/
H A Dsparcv8plus.S190 bz,pn %icc,.L_bn_mul_add_words_tail
232 brnz,a,pn %o2,.L_bn_mul_add_words_tail
292 bz,pn %icc,.L_bn_mul_words_tail
328 brnz,a,pn %o2,.L_bn_mul_words_tail
380 bz,pn %icc,.L_bn_sqr_words_tail
415 brnz,a,pn %o2,.L_bn_sqr_words_tail
481 bz,pn %icc,.L_bn_add_words_tail
511 brnz,a,pn %o3,.L_bn_add_words_tail
559 bz,pn %icc,.L_bn_sub_words_tail
589 brnz,a,pn %o3,.L_bn_sub_words_tail
/openssl/doc/designs/quic-design/
H A Dquic-ackm.md432 int ossl_ackm_is_rx_pn_processable(OSSL_ACKM *ackm, QUIC_PN pn, int pkt_space);
478 space. The packet number is written to `*pn`. Returns 1 on success.
484 int ossl_ackm_get_largest_unacked(OSSL_ACKM *ackm, int pkt_space, QUIC_PN *pn);
/openssl/test/recipes/30-test_evp_data/
H A Devpmac_common.txt496 Custom = "]J&/.?L/c&}p(b!X|?>i7!]CAH6P@1<R'6|uOu2Vu^kCM!$ Een^pn&Zlale){mQhKjqe,)'-fsX6:u@D6+ZA^b70…
551 Custom = "]J&/.?L/c&}p(b!X|?>i7!]CAH6P@1<R'6|uOu2Vu^kCM!$ Een^pn&Zlale){mQhKjqe,)'-fsX6:u@D6+ZA^b70…

Completed in 103 milliseconds

12