/openssl/include/internal/ |
H A D | quic_types.h | 79 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 D | qlog.h | 127 # define QLOG_CID(name, value) QLOG_BIN((name), (value)->id, (value)->id_len)
|
/openssl/ssl/quic/ |
H A D | quic_wire_pkt.c | 257 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 D | quic_types.c | 20 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 D | quic_lcidm.c | 79 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 D | quic_wire.c | 322 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 D | quic_rcidm.c | 265 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 D | quic_srt_gen.c | 74 dcid->id_len)) in ossl_quic_srt_gen_calculate_token()
|
H A D | quic_trace.c | 59 if (id->id_len == 0) { in put_conn_id() 65 put_data(bio, id->id, id->id_len); in put_conn_id()
|
H A D | quic_record_util.c | 115 dst_conn_id->id_len, in ossl_quic_provide_initial_secret()
|
H A D | qlog.c | 123 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 D | quic_record_tx.c | 471 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 D | SSL_CTX_set_generate_session_id.pod | 14 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 D | sm2_sign.c | 26 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 D | sm2.h | 31 const size_t id_len, 40 const size_t id_len, 47 const size_t id_len,
|
/openssl/providers/implementations/signature/ |
H A D | sm2_sig.c | 89 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 D | quic_qlog_test.c | 88 qti.odcid.id_len = 1; in test_qlog() 222 qti.odcid.id_len = 1; in test_qlog_filter()
|
H A D | quic_rcidm_test.c | 34 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 D | quic_wire_test.c | 781 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 D | EVP_PKEY-SM2.pod | 48 EVP_PKEY_CTX_set1_id(pctx, id, id_len); 74 EVP_PKEY_CTX_set1_id(pctx, id, id_len);
|
/openssl/fuzz/ |
H A D | quic-rcidm.c | 71 cid->id_len = (unsigned char)cidl; in get_cid()
|
H A D | quic-lcidm.c | 62 cid->id_len = (unsigned char)cidl; in get_cid()
|
/openssl/doc/designs/quic-design/ |
H A D | connection-id-cache.md | 108 unsigned char id_len; 121 unsigned int id_len);
|
/openssl/ssl/ |
H A D | ssl_sess.c | 323 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 D | s_server.c | 69 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()
|