Home
last modified time | relevance | path

Searched refs:id_len (Results 1 – 25 of 34) sorted by relevance

12

/openssl/include/internal/
H A Dquic_types.h79 unsigned char id_len, id[QUIC_MAX_CONN_ID_LEN]; member
85 if (a->id_len != b->id_len || a->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_conn_id_eq()
87 return memcmp(a->id, b->id, a->id_len) == 0; in ossl_quic_conn_id_eq()
H A Dqlog.h127 # define QLOG_CID(name, value) QLOG_BIN((name), (value)->id, (value)->id_len)
/openssl/ssl/quic/
H A Dquic_wire_pkt.c257 hdr->src_conn_id.id_len = 0; in ossl_quic_wire_decode_pkt_hdr()
482 && hdr->dst_conn_id.id_len != short_conn_id_len)) in ossl_quic_wire_encode_pkt_hdr()
492 if (hdr->dst_conn_id.id_len != short_conn_id_len in ossl_quic_wire_encode_pkt_hdr()
512 if (hdr->dst_conn_id.id_len > QUIC_MAX_CONN_ID_LEN in ossl_quic_wire_encode_pkt_hdr()
551 hdr->dst_conn_id.id_len) in ossl_quic_wire_encode_pkt_hdr()
554 hdr->src_conn_id.id_len)) in ossl_quic_wire_encode_pkt_hdr()
601 && hdr->dst_conn_id.id_len != short_conn_id_len)) in ossl_quic_wire_get_encoded_pkt_hdr_len()
611 if (hdr->dst_conn_id.id_len != short_conn_id_len in ossl_quic_wire_get_encoded_pkt_hdr_len()
619 if (hdr->dst_conn_id.id_len > QUIC_MAX_CONN_ID_LEN in ossl_quic_wire_get_encoded_pkt_hdr_len()
687 dst_conn_id->id_len = (unsigned char)blen; in ossl_quic_wire_get_pkt_hdr_dst_conn_id()
[all …]
H A Dquic_types.c20 cid->id_len = (unsigned char)len; in ossl_quic_gen_rand_conn_id()
24 cid->id_len = 0; in ossl_quic_gen_rand_conn_id()
H A Dquic_lcidm.c79 return bin_hash(lcid_obj->cid.id, lcid_obj->cid.id_len); in lcid_hash()
171 if (key.cid.id_len > QUIC_MAX_CONN_ID_LEN) in lcidm_get0_lcid()
246 if (lcid->id_len > QUIC_MAX_CONN_ID_LEN) in lcidm_conn_new_lcid()
296 lcidm->next_lcid.id_len = (unsigned char)lcidm->lcid_len; in lcidm_generate_cid()
363 if (initial_odcid == NULL || initial_odcid->id_len < QUIC_MIN_ODCID_LEN in ossl_quic_lcidm_enrol_odcid()
364 || initial_odcid->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_lcidm_enrol_odcid()
540 if (lcid == NULL || lcid->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_lcidm_debug_add()
H A Dquic_wire.c322 if (f->conn_id.id_len < 1 in ossl_quic_wire_encode_frame_new_conn_id()
323 || f->conn_id.id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_wire_encode_frame_new_conn_id()
329 || !WPACKET_put_bytes_u8(pkt, f->conn_id.id_len) in ossl_quic_wire_encode_frame_new_conn_id()
330 || !WPACKET_memcpy(pkt, f->conn_id.id, f->conn_id.id_len) in ossl_quic_wire_encode_frame_new_conn_id()
433 if (cid->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_wire_encode_transport_param_cid()
438 cid->id_len) == NULL) in ossl_quic_wire_encode_transport_param_cid()
811 f->conn_id.id_len = (unsigned char)len; in ossl_quic_wire_decode_frame_new_conn_id()
970 cid->id_len = (unsigned char)len; in ossl_quic_wire_decode_transport_param_cid()
971 memcpy(cid->id, body, cid->id_len); in ossl_quic_wire_decode_transport_param_cid()
1007 p->cid.id_len = (unsigned char)cidl; in ossl_quic_wire_decode_transport_param_preferred_addr()
H A Dquic_rcidm.c265 assert(rcid->cid.id_len > 0 && rcid->cid.id_len <= QUIC_MAX_CONN_ID_LEN); in rcidm_check_rcid()
347 if (cid->id_len < 1 || cid->id_len > QUIC_MAX_CONN_ID_LEN in rcidm_create_rcid()
H A Dquic_srt_gen.c74 dcid->id_len)) in ossl_quic_srt_gen_calculate_token()
H A Dquic_trace.c59 if (id->id_len == 0) { in put_conn_id()
65 put_data(bio, id->id, id->id_len); in put_conn_id()
H A Dquic_record_util.c115 dst_conn_id->id_len, in ossl_quic_provide_initial_secret()
H A Dqlog.c123 strl = l + 1 + info->odcid.id_len * 2 + 1 + 6 + 6 + 1; in ossl_qlog_new_from_env()
132 for (i = 0; i < info->odcid.id_len; ++i) in ossl_qlog_new_from_env()
H A Dquic_record_tx.c471 if (!ossl_quic_wire_encode_pkt_hdr(&wpkt, hdr->dst_conn_id.id_len, in qtx_write_hdr()
658 pred_hdr_len = ossl_quic_wire_get_encoded_pkt_hdr_len(hdr->dst_conn_id.id_len, in qtx_write()
/openssl/doc/man3/
H A DSSL_CTX_set_generate_session_id.pod14 unsigned int *id_len);
19 unsigned int id_len);
30 (of length B<id_len>) is already contained in the internal session cache
49 B<id> into and a pointer to the maximum allowed length B<id_len>. The
50 buffer at location B<id> is only guaranteed to have the size B<id_len>.
52 the callback B<must never> increase B<id_len> or write to the location
56 callback may only fill part of the possible length and leave B<id_len>
69 guarantee uniqueness, it is recommended to use the maximum B<id_len> and
102 unsigned int *id_len)
107 RAND_pseudo_bytes(id, *id_len);
[all …]
/openssl/crypto/sm2/
H A Dsm2_sign.c26 const size_t id_len, in ossl_sm2_compute_z_digest() argument
83 if (id_len >= (UINT16_MAX / 8)) { in ossl_sm2_compute_z_digest()
89 entl = (uint16_t)(8 * id_len); in ossl_sm2_compute_z_digest()
102 if (id_len > 0 && !EVP_DigestUpdate(hash, id, id_len)) { in ossl_sm2_compute_z_digest()
152 const size_t id_len, in sm2_compute_msg_hash() argument
182 if (!ossl_sm2_compute_z_digest(z, fetched_digest, id, id_len, key)) { in sm2_compute_msg_hash()
413 const size_t id_len, in ossl_sm2_do_sign() argument
419 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len); in ossl_sm2_do_sign()
436 const size_t id_len, in ossl_sm2_do_verify() argument
442 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len); in ossl_sm2_do_verify()
/openssl/include/crypto/
H A Dsm2.h31 const size_t id_len,
40 const size_t id_len,
47 const size_t id_len,
/openssl/providers/implementations/signature/
H A Dsm2_sig.c89 size_t id_len; member
269 || !ossl_sm2_compute_z_digest(z, ctx->md, ctx->id, ctx->id_len, in sm2sig_compute_z_digest()
386 dstctx->id = OPENSSL_malloc(srcctx->id_len); in sm2sig_dupctx()
389 dstctx->id_len = srcctx->id_len; in sm2sig_dupctx()
390 memcpy(dstctx->id, srcctx->id, srcctx->id_len); in sm2sig_dupctx()
467 psm2ctx->id_len = tmp_idlen; in sm2sig_set_ctx_params()
/openssl/test/
H A Dquic_qlog_test.c88 qti.odcid.id_len = 1; in test_qlog()
222 qti.odcid.id_len = 1; in test_qlog_filter()
H A Dquic_rcidm_test.c34 ncid_frame_1.conn_id.id_len = 8; in test_rcidm()
38 ncid_frame_2.conn_id.id_len = 8; in test_rcidm()
H A Dquic_wire_test.c781 if (!TEST_uint64_t_eq(f.conn_id.id_len, sizeof(encode_case_16_conn_id))) in encode_case_16_dec()
784 if (!TEST_mem_eq(f.conn_id.id, f.conn_id.id_len, in encode_case_16_dec()
/openssl/doc/man7/
H A DEVP_PKEY-SM2.pod48 EVP_PKEY_CTX_set1_id(pctx, id, id_len);
74 EVP_PKEY_CTX_set1_id(pctx, id, id_len);
/openssl/fuzz/
H A Dquic-rcidm.c71 cid->id_len = (unsigned char)cidl; in get_cid()
H A Dquic-lcidm.c62 cid->id_len = (unsigned char)cidl; in get_cid()
/openssl/doc/designs/quic-design/
H A Dconnection-id-cache.md108 unsigned char id_len;
121 unsigned int id_len);
/openssl/ssl/
H A Dssl_sess.c323 unsigned int *id_len) in def_generate_session_id() argument
327 if (RAND_bytes_ex(ssl->ctx->libctx, id, *id_len, 0) <= 0) in def_generate_session_id()
334 } while (SSL_has_matching_session_id(ssl, id, *id_len) && in def_generate_session_id()
/openssl/apps/
H A Ds_server.c69 unsigned int *id_len);
3796 unsigned int *id_len) in generate_session_id() argument
3802 if (RAND_bytes(id, *id_len) <= 0) in generate_session_id()
3812 (session_id_prefix_len < *id_len) ? in generate_session_id()
3813 session_id_prefix_len : *id_len); in generate_session_id()
3815 while (SSL_has_matching_session_id(ssl, id, *id_len) && in generate_session_id()

Completed in 71 milliseconds

12