Lines Matching refs:enc_level
71 static int ch_on_handshake_yield_secret(uint32_t enc_level, int direction,
92 uint32_t enc_level);
701 const uint32_t enc_level = QUIC_ENC_LEVEL_1RTT; in txku_desirable() local
704 cur_pkt_count = ossl_qtx_get_cur_epoch_pkt_count(ch->qtx, enc_level); in txku_desirable()
705 max_pkt_count = ossl_qtx_get_max_epoch_pkt_count(ch->qtx, enc_level); in txku_desirable()
866 uint32_t enc_level = ch->tx_enc_level; in ch_on_crypto_send() local
867 uint32_t pn_space = ossl_quic_enc_level_to_pn_space(enc_level); in ch_on_crypto_send()
949 static int ch_on_handshake_yield_secret(uint32_t enc_level, int direction, in ch_on_handshake_yield_secret() argument
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()
972 if (!ossl_qtx_provide_secret(ch->qtx, 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()
991 for (i = QUIC_ENC_LEVEL_INITIAL; i < enc_level; ++i) in ch_on_handshake_yield_secret()
1000 if (!ossl_qrx_provide_secret(ch->qrx, 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
2011 for (enc_level = QUIC_ENC_LEVEL_INITIAL; in ch_rx_check_forged_pkt_limit()
2012 enc_level < QUIC_ENC_LEVEL_NUM; in ch_rx_check_forged_pkt_limit()
2013 ++enc_level) in ch_rx_check_forged_pkt_limit()
2019 if ((ch->el_discarded & (1U << enc_level)) != 0) in ch_rx_check_forged_pkt_limit()
2022 if (enc_level > ch->rx_enc_level) in ch_rx_check_forged_pkt_limit()
2025 l = ossl_qrx_get_max_forged_pkt_count(ch->qrx, enc_level); in ch_rx_check_forged_pkt_limit()
2120 uint32_t enc_level; in ch_rx_handle_packet() local
2146 enc_level = ossl_quic_pkt_type_to_enc_level(ch->qrx_pkt->hdr->type); in ch_rx_handle_packet()
2147 if ((ch->el_discarded & (1U << enc_level)) != 0) in ch_rx_handle_packet()
2717 uint32_t enc_level) in ch_discard_el() argument
2719 if (!ossl_assert(enc_level < QUIC_ENC_LEVEL_1RTT)) in ch_discard_el()
2722 if ((ch->el_discarded & (1U << enc_level)) != 0) in ch_discard_el()
2727 ossl_quic_tx_packetiser_discard_enc_level(ch->txp, enc_level); in ch_discard_el()
2728 ossl_qrx_discard_enc_level(ch->qrx, enc_level); in ch_discard_el()
2729 ossl_qtx_discard_enc_level(ch->qtx, enc_level); in ch_discard_el()
2731 if (enc_level != QUIC_ENC_LEVEL_0RTT) { in ch_discard_el()
2732 uint32_t pn_space = ossl_quic_enc_level_to_pn_space(enc_level); in ch_discard_el()
2749 ch->el_discarded |= (1U << enc_level); in ch_discard_el()