Lines Matching refs:el
408 OSSL_QRL_ENC_LEVEL *el in ossl_qtx_calculate_ciphertext_payload_len() local
412 if (el == NULL) { in ossl_qtx_calculate_ciphertext_payload_len()
421 tag_len = ossl_qrl_get_suite_cipher_tag_len(el->suite_id); in ossl_qtx_calculate_ciphertext_payload_len()
432 OSSL_QRL_ENC_LEVEL *el in ossl_qtx_calculate_plaintext_payload_len() local
436 if (el == NULL) { in ossl_qtx_calculate_plaintext_payload_len()
441 tag_len = ossl_qrl_get_suite_cipher_tag_len(el->suite_id); in ossl_qtx_calculate_plaintext_payload_len()
494 OSSL_QRL_ENC_LEVEL *el in qtx_encrypt_into_txe() local
501 if (!ossl_assert(el != NULL)) { in qtx_encrypt_into_txe()
510 if (el->op_count >= ossl_qrl_get_suite_max_pkt(el->suite_id)) { in qtx_encrypt_into_txe()
520 cctx = el->cctx[0]; in qtx_encrypt_into_txe()
533 memcpy(nonce, el->iv[0], (size_t)nonce_len); in qtx_encrypt_into_txe()
580 el->tag_len, txe_data(txe) + txe->data_len) != 1) { in qtx_encrypt_into_txe()
585 txe->data_len += el->tag_len; in qtx_encrypt_into_txe()
588 if (!ossl_quic_hdr_protector_encrypt(&el->hpr, ptrs)) in qtx_encrypt_into_txe()
591 ++el->op_count; in qtx_encrypt_into_txe()
609 OSSL_QRL_ENC_LEVEL *el = NULL; in qtx_write() local
621 el = ossl_qrl_enc_level_set_get(&qtx->el_set, enc_level, 1); in qtx_write()
622 if (!ossl_assert(el != NULL)) /* should already have been checked */ in qtx_write()
636 hdr->key_phase = (unsigned char)(el->key_epoch & 1); in qtx_write()
1060 OSSL_QRL_ENC_LEVEL *el; in ossl_qtx_get_cur_epoch_pkt_count() local
1062 el = ossl_qrl_enc_level_set_get(&qtx->el_set, enc_level, 1); in ossl_qtx_get_cur_epoch_pkt_count()
1063 if (el == NULL) in ossl_qtx_get_cur_epoch_pkt_count()
1066 return el->op_count; in ossl_qtx_get_cur_epoch_pkt_count()
1071 OSSL_QRL_ENC_LEVEL *el; in ossl_qtx_get_max_epoch_pkt_count() local
1073 el = ossl_qrl_enc_level_set_get(&qtx->el_set, enc_level, 1); in ossl_qtx_get_max_epoch_pkt_count()
1074 if (el == NULL) in ossl_qtx_get_max_epoch_pkt_count()
1077 return ossl_qrl_get_suite_max_pkt(el->suite_id); in ossl_qtx_get_max_epoch_pkt_count()
1094 OSSL_QRL_ENC_LEVEL *el; in ossl_qtx_get_key_epoch() local
1096 el = ossl_qrl_enc_level_set_get(&qtx->el_set, QUIC_ENC_LEVEL_1RTT, 1); in ossl_qtx_get_key_epoch()
1097 if (el == NULL) in ossl_qtx_get_key_epoch()
1100 return el->key_epoch; in ossl_qtx_get_key_epoch()