/openssl/ssl/quic/ |
H A D | quic_record_shared.c | 26 if (!ossl_assert(enc_level < QUIC_ENC_LEVEL_NUM)) in ossl_qrl_enc_level_set_get() 29 el = &els->el[enc_level]; in ossl_qrl_enc_level_set_get() 45 uint32_t enc_level) in ossl_qrl_enc_level_set_have_el() argument 77 assert(enc_level == QUIC_ENC_LEVEL_1RTT); in ossl_qrl_enc_level_set_has_keyslot() 85 uint32_t enc_level, in el_teardown_keyslot() argument 102 uint32_t enc_level, in el_setup_keyslot() argument 221 if (enc_level == QUIC_ENC_LEVEL_INITIAL in ossl_qrl_enc_level_set_provide_secret() 281 if (enc_level == QUIC_ENC_LEVEL_1RTT) { in ossl_qrl_enc_level_set_provide_secret() 386 el_teardown_keyslot(els, enc_level, 0); in ossl_qrl_enc_level_set_key_update() 482 el_teardown_keyslot(els, enc_level, 0); in ossl_qrl_enc_level_set_discard() [all …]
|
H A D | quic_txp.c | 158 uint32_t enc_level; member 194 h->enc_level = enc_level; in tx_helper_init() 496 uint32_t enc_level; in ossl_quic_tx_packetiser_free() local 777 ++enc_level) in ossl_quic_tx_packetiser_generate() 804 if (!txp_pkt_init(&pkt[enc_level], txp, enc_level, archetype, in ossl_quic_tx_packetiser_generate() 931 ++enc_level) in ossl_quic_tx_packetiser_generate() 1824 const uint32_t enc_level = pkt->h.enc_level; in txp_generate_pre_token() local 2039 const uint32_t enc_level = pkt->h.enc_level; in txp_generate_crypto_frames() local 2196 const uint32_t enc_level = pkt->h.enc_level; in txp_generate_stream_frames() local 2570 const uint32_t enc_level = pkt->h.enc_level; in txp_generate_for_el() local [all …]
|
H A D | quic_record_shared.h | 97 uint32_t enc_level); 105 uint32_t enc_level, 112 uint32_t enc_level, 125 uint32_t enc_level, 131 uint32_t enc_level); 135 uint32_t enc_level); 142 uint32_t enc_level); 148 uint32_t enc_level);
|
H A D | quic_record_tx.c | 181 uint32_t enc_level, in ossl_qtx_provide_secret() argument 187 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_qtx_provide_secret() 193 enc_level, in ossl_qtx_provide_secret() 204 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_qtx_discard_enc_level() 207 ossl_qrl_enc_level_set_discard(&qtx->el_set, enc_level); in ossl_qtx_discard_enc_level() 600 uint32_t enc_level, QUIC_PKT_HDR *hdr, in qtx_write() argument 755 uint32_t enc_level) in qtx_mutate_write() argument 773 ret = qtx_write(qtx, pkt, txe, enc_level, in qtx_mutate_write() 799 uint32_t enc_level; in ossl_qtx_write_pkt() local 810 else if (enc_level >= QUIC_ENC_LEVEL_NUM in ossl_qtx_write_pkt() [all …]
|
H A D | quic_record_rx.c | 270 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_qrx_provide_secret() 276 enc_level, in ossl_qrx_provide_secret() 296 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_qrx_discard_enc_level() 299 ossl_qrl_enc_level_set_discard(&qrx->el_set, enc_level); in ossl_qrx_discard_enc_level() 490 uint32_t enc_level; in rxe_determine_pn_space() local 492 enc_level = qrx_determine_enc_level(&rxe->hdr); in rxe_determine_pn_space() 493 return ossl_quic_enc_level_to_pn_space(enc_level); in rxe_determine_pn_space() 560 uint32_t enc_level, in qrx_get_cipher_ctx_idx() argument 569 if (enc_level != QUIC_ENC_LEVEL_1RTT) { in qrx_get_cipher_ctx_idx() 794 uint32_t pn_space, enc_level; in qrx_process_pkt() local [all …]
|
H A D | quic_channel.c | 92 uint32_t enc_level); 866 uint32_t enc_level = ch->tx_enc_level; in ch_on_crypto_send() local 958 if (enc_level < QUIC_ENC_LEVEL_HANDSHAKE || enc_level >= QUIC_ENC_LEVEL_NUM) in ch_on_handshake_yield_secret() 965 if (enc_level <= ch->tx_enc_level) in ch_on_handshake_yield_secret() 977 ch->tx_enc_level = enc_level; in ch_on_handshake_yield_secret() 980 if (enc_level <= ch->rx_enc_level) in ch_on_handshake_yield_secret() 1006 ch->rx_enc_level = enc_level; in ch_on_handshake_yield_secret() 2008 uint32_t enc_level; in ch_rx_check_forged_pkt_limit() local 2012 enc_level < QUIC_ENC_LEVEL_NUM; in ch_rx_check_forged_pkt_limit() 2013 ++enc_level) in ch_rx_check_forged_pkt_limit() [all …]
|
H A D | quic_rx_depack.c | 45 uint32_t enc_level, in depack_do_frame_ping() argument 57 ossl_quic_tx_packetiser_schedule_ack_eliciting(ch->txp, enc_level); in depack_do_frame_ping() 1046 OSSL_QRX_PKT *parent_pkt, uint32_t enc_level, in depack_process_frames() argument 1050 uint32_t packet_space = ossl_quic_enc_level_to_pn_space(enc_level); in depack_process_frames() 1111 if (!depack_do_frame_ping(pkt, ch, enc_level, ackm_data)) in depack_process_frames() 1413 uint32_t enc_level; in ossl_quic_handle_frames() local 1436 enc_level = ossl_quic_pkt_type_to_enc_level(qpacket->hdr->type); in ossl_quic_handle_frames() 1437 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_quic_handle_frames() 1445 ackm_data.pkt_space = ossl_quic_enc_level_to_pn_space(enc_level); in ossl_quic_handle_frames() 1450 enc_level, in ossl_quic_handle_frames()
|
H A D | quic_tls.c | 106 uint32_t enc_level; in quic_new_record_layer() local 143 enc_level = QUIC_ENC_LEVEL_0RTT; in quic_new_record_layer() 147 enc_level = QUIC_ENC_LEVEL_HANDSHAKE; in quic_new_record_layer() 151 enc_level = QUIC_ENC_LEVEL_1RTT; in quic_new_record_layer() 182 if (!rl->qtls->args.yield_secret_cb(enc_level, qdir, suite_id, in quic_new_record_layer()
|
/openssl/include/internal/ |
H A D | quic_record_tx.h | 115 uint32_t enc_level, 128 int ossl_qtx_discard_enc_level(OSSL_QTX *qtx, uint32_t enc_level); 131 int ossl_qtx_is_enc_level_provisioned(OSSL_QTX *qtx, uint32_t enc_level); 139 int ossl_qtx_calculate_plaintext_payload_len(OSSL_QTX *qtx, uint32_t enc_level, 149 int ossl_qtx_calculate_ciphertext_payload_len(OSSL_QTX *qtx, uint32_t enc_level, 360 uint64_t ossl_qtx_get_cur_epoch_pkt_count(OSSL_QTX *qtx, uint32_t enc_level); 383 uint64_t ossl_qtx_get_max_epoch_pkt_count(OSSL_QTX *qtx, uint32_t enc_level);
|
H A D | quic_record_rx.h | 160 uint32_t enc_level, 174 int ossl_qrx_discard_enc_level(OSSL_QRX *qrx, uint32_t enc_level); 544 uint32_t enc_level);
|
H A D | quic_types.h | 39 ossl_quic_enc_level_to_pn_space(uint32_t enc_level) in ossl_quic_enc_level_to_pn_space() argument 41 switch (enc_level) { in ossl_quic_enc_level_to_pn_space()
|
H A D | quic_wire_pkt.h | 52 ossl_quic_enc_level_to_pkt_type(uint32_t enc_level) in ossl_quic_enc_level_to_pkt_type() argument 54 switch (enc_level) { in ossl_quic_enc_level_to_pkt_type()
|
H A D | quic_tls.h | 49 int (*yield_secret_cb)(uint32_t enc_level, int direction /* 0=RX, 1=TX */,
|
H A D | quic_txp.h | 159 uint32_t enc_level);
|
/openssl/test/ |
H A D | quic_record_test.c | 43 uint32_t enc_level, suite_id; member 1814 s.args.short_conn_id_len = op->enc_level; in rx_run_script() 1829 if (!TEST_true(ossl_qrx_provide_secret(s.qrx, op->enc_level, in rx_run_script() 1910 op->enc_level))) in rx_run_script() 1916 s.args.init_key_phase_bit = (unsigned char)op->enc_level; in rx_run_script() 3011 uint32_t enc_level, suite_id; member 3626 if (!TEST_true(ossl_qtx_provide_secret(qtx, op->enc_level, in tx_run_script() 3639 if (!TEST_true(ossl_qtx_discard_enc_level(qtx, op->enc_level))) in tx_run_script() 3644 uint32_t enc_level in tx_run_script() local 3648 if (enc_level < QUIC_ENC_LEVEL_NUM) { /* encrypted packet */ in tx_run_script() [all …]
|
/openssl/doc/designs/quic-design/ |
H A D | quic-tls.md | 78 int (*yield_secret_cb)(uint32_t enc_level, int direction /* 0=RX, 1=TX */,
|