| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_record_tx.c | 115 OSSL_QTX *qtx; in ossl_qtx_new() local 120 qtx = OPENSSL_zalloc(sizeof(OSSL_QTX)); in ossl_qtx_new() 121 if (qtx == NULL) in ossl_qtx_new() 124 qtx->libctx = args->libctx; in ossl_qtx_new() 125 qtx->propq = args->propq; in ossl_qtx_new() 126 qtx->bio = args->bio; in ossl_qtx_new() 127 qtx->mdpl = args->mdpl; in ossl_qtx_new() 128 qtx->get_qlog_cb = args->get_qlog_cb; in ossl_qtx_new() 129 qtx->get_qlog_cb_arg = args->get_qlog_cb_arg; in ossl_qtx_new() 131 return qtx; in ossl_qtx_new() [all …]
|
| H A D | quic_record_util.c | 87 struct ossl_qtx_st *qtx) in ossl_quic_provide_initial_secret() argument 94 if (qrx == NULL && qtx == NULL) in ossl_quic_provide_initial_secret() 121 if (((qtx != NULL && tx_secret == client_initial_secret) in ossl_quic_provide_initial_secret() 134 if (((qtx != NULL && tx_secret == server_initial_secret) in ossl_quic_provide_initial_secret() 160 if (qrx != NULL && qtx != NULL && !EVP_MD_up_ref(sha256)) { in ossl_quic_provide_initial_secret() 166 if (qtx != NULL in ossl_quic_provide_initial_secret() 167 && !ossl_qtx_provide_secret(qtx, QUIC_ENC_LEVEL_INITIAL, in ossl_quic_provide_initial_secret()
|
| H A D | quic_channel.c | 188 ch->qtx = ossl_qtx_new(&qtx_args); in ch_init() 189 if (ch->qtx == NULL) in ch_init() 262 txp_args.qtx = ch->qtx; in ch_init() 403 ossl_qtx_free(ch->qtx); in ch_cleanup() 502 if (ch->qtx == NULL) in ossl_quic_channel_set_mutator() 505 ossl_qtx_set_mutator(ch->qtx, mutatecb, finishmutatecb, mutatearg); in ossl_quic_channel_set_mutator() 738 || !ossl_qtx_trigger_key_update(ch->qtx)) { in ch_trigger_txku() 803 cur_pkt_count = ossl_qtx_get_cur_epoch_pkt_count(ch->qtx, enc_level); in txku_desirable() 804 max_pkt_count = ossl_qtx_get_max_epoch_pkt_count(ch->qtx, enc_level); in txku_desirable() 1088 if (!ossl_qtx_provide_secret(ch->qtx, enc_level, in ch_on_handshake_yield_secret() [all …]
|
| H A D | quic_txp.c | 543 || args->qtx == NULL in ossl_quic_tx_packetiser_new() 876 ossl_qtx_finish_dgram(txp->args.qtx); in ossl_quic_tx_packetiser_generate() 1025 ossl_qtx_finish_dgram(txp->args.qtx); in ossl_quic_tx_packetiser_generate() 1431 if (!ossl_qtx_is_enc_level_provisioned(txp->args.qtx, enc_level)) in txp_should_try_staging() 1607 if (!ossl_qtx_calculate_plaintext_payload_len(txp->args.qtx, enc_level, in txp_determine_ppl_from_pl() 1617 return ossl_qtx_get_mdpl(txp->args.qtx); in txp_get_mdpl() 1769 if (!ossl_qtx_calculate_ciphertext_payload_len(txp->args.qtx, pkt->h.enc_level, in txp_pkt_postgen_update_pkt_overhead() 3037 if (!ossl_qtx_write_pkt(txp->args.qtx, &txpkt)) in txp_pkt_commit() 3230 if (ossl_qtx_is_enc_level_provisioned(txp->args.qtx, enc_level)) { in ossl_quic_tx_packetiser_get_deadline()
|
| H A D | quic_channel_local.h | 96 OSSL_QTX *qtx; member
|
| H A D | quic_port.c | 440 ossl_qtx_set_bio(ch->qtx, net_wbio); in ossl_quic_port_set_net_wbio() 568 ossl_qtx_set_bio(ch->qtx, port->net_wbio); in port_make_channel()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | quic_record_tx.h | 61 void ossl_qtx_free(OSSL_QTX *qtx); 64 void ossl_qtx_set_mutator(OSSL_QTX *qtx, ossl_mutate_packet_cb mutatecb, 68 void ossl_qtx_set_msg_callback(OSSL_QTX *qtx, ossl_msg_cb msg_callback, 70 void ossl_qtx_set_msg_callback_arg(OSSL_QTX *qtx, void *msg_callback_arg); 73 void ossl_qtx_set_qlog_cb(OSSL_QTX *qtx, QLOG *(*get_qlog_cb)(void *arg), 114 int ossl_qtx_provide_secret(OSSL_QTX *qtx, 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, [all …]
|
| H A D | quic_record_util.h | 66 struct ossl_qtx_st *qtx);
|
| H A D | quic_txp.h | 40 OSSL_QTX *qtx; /* QUIC Record Layer TX we are using */ member
|
| /freebsd/crypto/openssl/test/ |
| H A D | quic_record_test.c | 11298 OSSL_QTX *qtx = NULL; in tx_run_script() local 11304 if (!TEST_ptr(qtx = ossl_qtx_new(&args))) in tx_run_script() 11310 if (!TEST_true(ossl_qtx_provide_secret(qtx, op->enc_level, in tx_run_script() 11319 NULL, qtx))) in tx_run_script() 11323 if (!TEST_true(ossl_qtx_discard_enc_level(qtx, op->enc_level))) in tx_run_script() 11332 max_value = ossl_qtx_get_max_epoch_pkt_count(qtx, enc_level); in tx_run_script() 11337 old_value = ossl_qtx_get_cur_epoch_pkt_count(qtx, enc_level); in tx_run_script() 11342 if (!TEST_true(ossl_qtx_write_pkt(qtx, op->pkt))) in tx_run_script() 11346 new_value = ossl_qtx_get_cur_epoch_pkt_count(qtx, enc_level); in tx_run_script() 11352 if (!TEST_true(ossl_qtx_pop_net(qtx, &msg))) in tx_run_script() [all …]
|
| H A D | quic_txp_test.c | 107 ossl_qtx_free(h->args.qtx); in helper_cleanup() 150 if (!TEST_ptr(h->args.qtx = ossl_qtx_new(&h->qtx_args))) in helper_init() 1332 ossl_qtx_finish_dgram(h.args.qtx); in run_script() 1333 ossl_qtx_flush_net(h.args.qtx); in run_script() 1471 if (!TEST_true(ossl_qtx_provide_secret(h.args.qtx, in run_script()
|
| /freebsd/crypto/openssl/doc/designs/quic-design/ |
| H A D | tx-packetiser.md | 24 OSSL_QTX *qtx; /* QUIC Record Layer TX we are using */ 129 int ossl_qtx_write_pkt(OSSL_QTX *qtx, const OSSL_QTX_PKT *pkt); 142 void ossl_qtx_flush_net(OSSL_QTX *qtx);
|
| H A D | quic-fault-injector.md | 113 void ossl_qtx_set_mutator(OSSL_QTX *qtx, ossl_mutate_packet_cb mutatecb,
|