| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_record_shared.c | 21 uint32_t enc_level, in ossl_qrl_enc_level_set_get() argument 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 47 OSSL_QRL_ENC_LEVEL *el = ossl_qrl_enc_level_set_get(els, enc_level, 0); in ossl_qrl_enc_level_set_have_el() 63 uint32_t enc_level, in ossl_qrl_enc_level_set_has_keyslot() argument 67 OSSL_QRL_ENC_LEVEL *el = ossl_qrl_enc_level_set_get(els, enc_level, 0); in ossl_qrl_enc_level_set_has_keyslot() 75 return enc_level == QUIC_ENC_LEVEL_1RTT || keyslot == 0; in ossl_qrl_enc_level_set_has_keyslot() 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 [all …]
|
| H A D | quic_txp.c | 160 uint32_t enc_level; member 190 uint32_t enc_level, size_t max_ppl, size_t reserve) in tx_helper_init() argument 196 h->enc_level = enc_level; in tx_helper_init() 207 if (max_ppl > h->txp->el[enc_level].scratch_len) { in tx_helper_init() 210 scratch = OPENSSL_realloc(h->txp->el[enc_level].scratch, max_ppl); in tx_helper_init() 214 h->txp->el[enc_level].scratch = scratch; in tx_helper_init() 215 h->txp->el[enc_level].scratch_len = max_ppl; in tx_helper_init() 252 struct txp_el *el = &h->txp->el[h->enc_level]; in tx_helper_append_iovec() 291 struct txp_el *el = &h->txp->el[h->enc_level]; in tx_helper_begin() 429 uint32_t enc_level, [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() 202 int ossl_qtx_discard_enc_level(OSSL_QTX *qtx, uint32_t enc_level) in ossl_qtx_discard_enc_level() argument 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() 211 int ossl_qtx_is_enc_level_provisioned(OSSL_QTX *qtx, uint32_t enc_level) in ossl_qtx_is_enc_level_provisioned() argument 213 return ossl_qrl_enc_level_set_get(&qtx->el_set, enc_level, 1) != NULL; in ossl_qtx_is_enc_level_provisioned() 404 int ossl_qtx_calculate_ciphertext_payload_len(OSSL_QTX *qtx, uint32_t enc_level, in ossl_qtx_calculate_ciphertext_payload_len() argument 409 = ossl_qrl_enc_level_set_get(&qtx->el_set, enc_level, 1); in ossl_qtx_calculate_ciphertext_payload_len() [all …]
|
| H A D | quic_record_rx.c | 187 QUIC_PN pn, uint32_t enc_level, 494 int ossl_qrx_provide_secret(OSSL_QRX *qrx, uint32_t enc_level, in ossl_qrx_provide_secret() argument 498 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_qrx_provide_secret() 504 enc_level, in ossl_qrx_provide_secret() 522 int ossl_qrx_discard_enc_level(OSSL_QRX *qrx, uint32_t enc_level) in ossl_qrx_discard_enc_level() argument 524 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_qrx_discard_enc_level() 527 ossl_qrl_enc_level_set_discard(&qrx->el_set, enc_level); in ossl_qrx_discard_enc_level() 718 uint32_t enc_level; in rxe_determine_pn_space() local 720 enc_level = qrx_determine_enc_level(&rxe->hdr); in rxe_determine_pn_space() 721 return ossl_quic_enc_level_to_pn_space(enc_level); in rxe_determine_pn_space() [all …]
|
| H A D | quic_channel.c | 90 uint32_t enc_level); 800 const uint32_t enc_level = QUIC_ENC_LEVEL_1RTT; in txku_desirable() local 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() 965 uint32_t enc_level = ch->tx_enc_level; in ch_on_crypto_send() local 966 uint32_t pn_space = ossl_quic_enc_level_to_pn_space(enc_level); in ch_on_crypto_send() 1055 uint32_t enc_level; in ch_on_handshake_yield_secret() local 1060 enc_level = QUIC_ENC_LEVEL_0RTT; in ch_on_handshake_yield_secret() 1064 enc_level = QUIC_ENC_LEVEL_HANDSHAKE; in ch_on_handshake_yield_secret() 1068 enc_level = QUIC_ENC_LEVEL_1RTT; in ch_on_handshake_yield_secret() [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() 1048 OSSL_QRX_PKT *parent_pkt, uint32_t enc_level, in depack_process_frames() argument 1052 uint32_t packet_space = ossl_quic_enc_level_to_pn_space(enc_level); in depack_process_frames() 1113 if (!depack_do_frame_ping(pkt, ch, enc_level, ackm_data)) in depack_process_frames() 1429 uint32_t enc_level; in ossl_quic_handle_frames() local 1445 enc_level = ossl_quic_pkt_type_to_enc_level(qpacket->hdr->type); in ossl_quic_handle_frames() 1446 if (enc_level >= QUIC_ENC_LEVEL_NUM) in ossl_quic_handle_frames() 1453 ackm_data.pkt_space = ossl_quic_enc_level_to_pn_space(enc_level); in ossl_quic_handle_frames() 1463 if (enc_level == QUIC_ENC_LEVEL_HANDSHAKE) in ossl_quic_handle_frames() [all …]
|
| /freebsd/crypto/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, 357 uint64_t ossl_qtx_get_cur_epoch_pkt_count(OSSL_QTX *qtx, uint32_t enc_level); 380 uint64_t ossl_qtx_get_max_epoch_pkt_count(OSSL_QTX *qtx, uint32_t enc_level);
|
| H A D | quic_record_rx.h | 164 uint32_t enc_level, 189 int ossl_qrx_discard_enc_level(OSSL_QRX *qrx, uint32_t enc_level); 567 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_txp.h | 175 uint32_t enc_level);
|
| /freebsd/crypto/openssl/test/ |
| H A D | quic_record_test.c | 43 uint32_t enc_level, suite_id; member 9072 s.args.short_conn_id_len = op->enc_level; in rx_run_script() 9087 if (!TEST_true(ossl_qrx_provide_secret(s.qrx, op->enc_level, in rx_run_script() 9104 if (!TEST_true(ossl_qrx_discard_enc_level(s.qrx, op->enc_level))) in rx_run_script() 9168 op->enc_level))) in rx_run_script() 9174 s.args.init_key_phase_bit = (unsigned char)op->enc_level; in rx_run_script() 10269 uint32_t enc_level, suite_id; member 11310 if (!TEST_true(ossl_qtx_provide_secret(qtx, op->enc_level, in tx_run_script() 11323 if (!TEST_true(ossl_qtx_discard_enc_level(qtx, op->enc_level))) in tx_run_script() 11327 uint32_t enc_level in tx_run_script() local [all …]
|