Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 24 of 24) sorted by relevance

/openssl/ssl/quic/
H A Dquic_fc.c76 if (num_bytes > credit) { in ossl_quic_txfc_consume_credit_local()
78 num_bytes = credit; in ossl_quic_txfc_consume_credit_local()
81 if (num_bytes > 0 && num_bytes == credit) in ossl_quic_txfc_consume_credit_local()
84 txfc->swm += num_bytes; in ossl_quic_txfc_consume_credit_local()
189 if (num_bytes > credit) { in on_rx_controlled_bytes()
191 num_bytes = credit; in on_rx_controlled_bytes()
195 rxfc->swm += num_bytes; in on_rx_controlled_bytes()
335 rxfc->rwm += num_bytes; in rxfc_on_retire()
347 if (num_bytes == 0) in ossl_quic_rxfc_on_retire()
350 if (rxfc->rwm + num_bytes > rxfc->swm) in ossl_quic_rxfc_on_retire()
[all …]
H A Dquic_ackm.c947 ackm->bytes_in_flight -= p->num_bytes; in ackm_on_pkts_lost()
950 -= p->num_bytes; in ackm_on_pkts_lost()
962 loss_info.tx_size = p->num_bytes; in ackm_on_pkts_lost()
991 ackm->bytes_in_flight -= apkt->num_bytes; in ackm_on_pkts_acked()
994 -= apkt->num_bytes; in ackm_on_pkts_acked()
1010 ainfo.tx_size = apkt->num_bytes; in ackm_on_pkts_acked()
1089 if (pkt->num_bytes == 0) in ossl_ackm_on_tx_packet()
1103 += pkt->num_bytes; in ossl_ackm_on_tx_packet()
1106 ackm->bytes_in_flight += pkt->num_bytes; in ossl_ackm_on_tx_packet()
1243 ackm->bytes_in_flight -= pkt->num_bytes; in ossl_ackm_on_pkt_space_discarded()
[all …]
H A Dcc_newreno.c311 static int newreno_on_data_sent(OSSL_CC_DATA *cc, uint64_t num_bytes) in newreno_on_data_sent() argument
315 nr->bytes_in_flight += num_bytes; in newreno_on_data_sent()
449 uint64_t num_bytes) in newreno_on_data_invalidated() argument
453 nr->bytes_in_flight -= num_bytes; in newreno_on_data_invalidated()
H A Djson_enc.c117 static int json_ensure_stack_size(OSSL_JSON_ENC *json, size_t num_bytes) in json_ensure_stack_size() argument
121 if (json->stack_bytes >= num_bytes) in json_ensure_stack_size()
124 if (num_bytes <= OSSL_NELEM(json->stack_small)) { in json_ensure_stack_size()
130 stack = OPENSSL_realloc(json->stack, num_bytes); in json_ensure_stack_size()
136 json->stack_bytes = num_bytes; in json_ensure_stack_size()
H A Dquic_sstream.c357 int ossl_quic_sstream_set_buffer_size(QUIC_SSTREAM *qss, size_t num_bytes) in ossl_quic_sstream_set_buffer_size() argument
359 return ring_buf_resize(&qss->ring_buf, num_bytes, qss->cleanse); in ossl_quic_sstream_set_buffer_size()
H A Dquic_txp.c448 OSSL_QUIC_TX_PACKETISER *txp, size_t num_bytes);
1735 OSSL_QUIC_TX_PACKETISER *txp, size_t num_bytes) in txp_pkt_append_padding() argument
1739 if (num_bytes == 0) in txp_pkt_append_padding()
1752 if (!ossl_quic_wire_encode_padding(wpkt, num_bytes)) { in txp_pkt_append_padding()
1760 pkt->tpkt->ackm_pkt.num_bytes += num_bytes; in txp_pkt_append_padding()
2825 tpkt->ackm_pkt.num_bytes = h->bytes_appended + pkt->geom.pkt_overhead; in txp_generate_for_el()
H A Dquic_wire.c36 int ossl_quic_wire_encode_padding(WPACKET *pkt, size_t num_bytes) in ossl_quic_wire_encode_padding() argument
42 return WPACKET_memset(pkt, 0, num_bytes); in ossl_quic_wire_encode_padding()
/openssl/include/internal/
H A Dquic_fc.h92 int ossl_quic_txfc_consume_credit(QUIC_TXFC *txfc, uint64_t num_bytes);
99 int ossl_quic_txfc_consume_credit_local(QUIC_TXFC *txfc, uint64_t num_bytes);
220 uint64_t num_bytes,
H A Dring_buf.h231 static ossl_inline int ring_buf_resize(struct ring_buf *r, size_t num_bytes, in ring_buf_resize() argument
238 if (num_bytes == r->alloc) in ring_buf_resize()
241 if (num_bytes < ring_buf_used(r)) in ring_buf_resize()
244 rnew.start = OPENSSL_malloc(num_bytes); in ring_buf_resize()
248 rnew.alloc = num_bytes; in ring_buf_resize()
H A Dquic_cc.h157 uint64_t num_bytes);
196 uint64_t num_bytes);
H A Dquic_ackm.h63 size_t num_bytes; member
132 int ossl_ackm_on_rx_datagram(OSSL_ACKM *ackm, size_t num_bytes);
H A Dquic_stream.h272 int ossl_quic_sstream_set_buffer_size(QUIC_SSTREAM *qss, size_t num_bytes);
H A Dquic_wire.h238 int ossl_quic_wire_encode_padding(WPACKET *pkt, size_t num_bytes);
/openssl/crypto/bio/
H A Dbss_dgram_pair.c82 static void ring_buf_push_pop(struct ring_buf *r, int idx, size_t num_bytes) in ring_buf_push_pop() argument
90 if (!ossl_assert(num_bytes <= r->len - r->idx[idx])) in ring_buf_push_pop()
96 if (!ossl_assert(idx != 0 ? num_bytes <= r->count in ring_buf_push_pop()
97 : num_bytes + r->count <= r->len)) in ring_buf_push_pop()
101 new_idx = r->idx[idx] + num_bytes; in ring_buf_push_pop()
107 r->count -= num_bytes; in ring_buf_push_pop()
109 r->count += num_bytes; in ring_buf_push_pop()
112 #define ring_buf_push(r, num_bytes) ring_buf_push_pop((r), 0, (num_bytes)) argument
113 #define ring_buf_pop(r, num_bytes) ring_buf_push_pop((r), 1, (num_bytes)) argument
/openssl/test/
H A Dcc_dummy.c108 uint64_t num_bytes) in dummy_on_data_sent() argument
132 uint64_t num_bytes) in dummy_on_data_invalidated() argument
H A Dquic_fifd_test.c177 pkt->ackm_pkt.num_bytes = 50; in test_generic()
235 pkt2->ackm_pkt.num_bytes = 50; in test_generic()
H A Dquic_ackm_test.c370 tx->num_bytes = 123; in test_tx_ack_case_actual()
550 tx->num_bytes = 123; in test_tx_ack_time_script()
1029 tx->num_bytes = 123; in test_rx_ack_actual()
H A Dquic_fc_test.c240 #define RX_OP_RETIRE(stream_idx, num_bytes, rtt, expect_fail) \ argument
241 { RX_OPC_RETIRE, (stream_idx), (num_bytes), (rtt), (expect_fail) },
/openssl/crypto/ec/
H A Decp_nistp224.c333 int num_bytes; in BN_to_felem() local
339 num_bytes = BN_bn2lebinpad(bn, b_out, sizeof(b_out)); in BN_to_felem()
340 if (num_bytes < 0) { in BN_to_felem()
1419 int num_bytes; in ossl_ec_GFp_nistp224_points_mul() local
1513 num_bytes = BN_bn2lebinpad(tmp_scalar, in ossl_ec_GFp_nistp224_points_mul()
1516 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp224_points_mul()
1519 if (num_bytes < 0) { in ossl_ec_GFp_nistp224_points_mul()
1565 num_bytes = BN_bn2lebinpad(tmp_scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp224_points_mul()
1567 num_bytes = BN_bn2lebinpad(scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp224_points_mul()
H A Decp_nistp384.c144 int num_bytes; in BN_to_felem() local
150 num_bytes = BN_bn2lebinpad(bn, b_out, sizeof(b_out)); in BN_to_felem()
151 if (num_bytes < 0) { in BN_to_felem()
1713 int num_bytes; in ossl_ec_GFp_nistp384_points_mul() local
1810 num_bytes = BN_bn2lebinpad(tmp_scalar, in ossl_ec_GFp_nistp384_points_mul()
1813 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp384_points_mul()
1816 if (num_bytes < 0) { in ossl_ec_GFp_nistp384_points_mul()
1857 num_bytes = BN_bn2lebinpad(tmp_scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp384_points_mul()
1859 num_bytes = BN_bn2lebinpad(scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp384_points_mul()
H A Decp_nistp521.c178 int num_bytes; in BN_to_felem() local
184 num_bytes = BN_bn2lebinpad(bn, b_out, sizeof(b_out)); in BN_to_felem()
185 if (num_bytes < 0) { in BN_to_felem()
1922 int num_bytes; in ossl_ec_GFp_nistp521_points_mul() local
2019 num_bytes = BN_bn2lebinpad(tmp_scalar, in ossl_ec_GFp_nistp521_points_mul()
2022 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp521_points_mul()
2025 if (num_bytes < 0) { in ossl_ec_GFp_nistp521_points_mul()
2071 num_bytes = BN_bn2lebinpad(tmp_scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp521_points_mul()
2073 num_bytes = BN_bn2lebinpad(scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp521_points_mul()
H A Decp_nistp256.c154 int num_bytes; in BN_to_felem() local
160 num_bytes = BN_bn2lebinpad(bn, b_out, sizeof(b_out)); in BN_to_felem()
161 if (num_bytes < 0) { in BN_to_felem()
2032 int num_bytes; in ossl_ec_GFp_nistp256_points_mul() local
2131 num_bytes = BN_bn2lebinpad(tmp_scalar, in ossl_ec_GFp_nistp256_points_mul()
2134 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp256_points_mul()
2137 if (num_bytes < 0) { in ossl_ec_GFp_nistp256_points_mul()
2185 num_bytes = BN_bn2lebinpad(tmp_scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp256_points_mul()
2187 num_bytes = BN_bn2lebinpad(scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp256_points_mul()
/openssl/demos/http3/
H A Dossl-nghttp3.c460 size_t num_bytes, consumed; in h3_conn_pump_stream() local
489 ec = SSL_read_ex(s->s, s->buf, sizeof(s->buf), &num_bytes); in h3_conn_pump_stream()
491 num_bytes = 0; in h3_conn_pump_stream()
526 s->buf_total = num_bytes; in h3_conn_pump_stream()
/openssl/doc/designs/quic-design/
H A Dquic-ackm.md138 size_t num_bytes;
206 int ossl_ackm_on_rx_datagram(OSSL_ACKM *ackm, size_t num_bytes);

Completed in 98 milliseconds