| /src/crypto/openssl/ssl/quic/ |
| H A D | quic_wire_pkt.c | 241 hdr->dst_conn_id.id_len = (unsigned char)short_conn_id_len; in ossl_quic_wire_decode_pkt_hdr() 261 hdr->src_conn_id.id_len = 0; in ossl_quic_wire_decode_pkt_hdr() 303 hdr->dst_conn_id.id_len = (unsigned char)dst_conn_id_len; in ossl_quic_wire_decode_pkt_hdr() 304 hdr->src_conn_id.id_len = (unsigned char)src_conn_id_len; in ossl_quic_wire_decode_pkt_hdr() 494 && hdr->dst_conn_id.id_len != short_conn_id_len)) in ossl_quic_wire_encode_pkt_hdr() 504 if (hdr->dst_conn_id.id_len != short_conn_id_len in ossl_quic_wire_encode_pkt_hdr() 524 if (hdr->dst_conn_id.id_len > QUIC_MAX_CONN_ID_LEN in ossl_quic_wire_encode_pkt_hdr() 525 || hdr->src_conn_id.id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_wire_encode_pkt_hdr() 569 || !WPACKET_put_bytes_u8(pkt, hdr->dst_conn_id.id_len) in ossl_quic_wire_encode_pkt_hdr() 571 hdr->dst_conn_id.id_len) in ossl_quic_wire_encode_pkt_hdr() [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_port.c | 772 if (odcid->id_len != 0) { in port_bind_channel() 910 token->odcid.id_len) in marshal_validation_token() 912 token->rscid.id_len))) in marshal_validation_token() 1061 || (token->odcid.id_len = (unsigned char)PACKET_remaining(&subpkt)) in parse_validation_token() 1065 token->odcid.id_len) in parse_validation_token() 1067 || (token->rscid.id_len = (unsigned char)PACKET_remaining(&subpkt)) in parse_validation_token() 1070 token->rscid.id_len))) in parse_validation_token() 1181 ok = ossl_quic_wire_encode_pkt_hdr(&wpkt, client_hdr->dst_conn_id.id_len, in port_send_retry() 1267 if (!ossl_quic_wire_encode_pkt_hdr(&wpkt, client_hdr->dst_conn_id.id_len, in port_send_version_negotiation() 1390 if (token.rscid.id_len != hdr->dst_conn_id.id_len in port_validate_token() [all …]
|
| H A D | quic_lcidm.c | 82 SipHash_Update(&siphash, lcid_obj->cid.id, lcid_obj->cid.id_len); in lcid_hash() 186 if (key.cid.id_len > QUIC_MAX_CONN_ID_LEN) in lcidm_get0_lcid() 261 if (lcid->id_len > QUIC_MAX_CONN_ID_LEN) in lcidm_conn_new_lcid() 312 lcidm->next_lcid.id_len = (unsigned char)lcidm->lcid_len; in lcidm_generate_cid() 381 if (initial_odcid == NULL || initial_odcid->id_len < QUIC_MIN_ODCID_LEN in ossl_quic_lcidm_enrol_odcid() 382 || initial_odcid->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_lcidm_enrol_odcid() 590 if (lcid == NULL || lcid->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_lcidm_debug_add()
|
| H A D | quic_wire.c | 319 if (f->conn_id.id_len < 1 in ossl_quic_wire_encode_frame_new_conn_id() 320 || f->conn_id.id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_wire_encode_frame_new_conn_id() 326 || !WPACKET_put_bytes_u8(pkt, f->conn_id.id_len) in ossl_quic_wire_encode_frame_new_conn_id() 327 || !WPACKET_memcpy(pkt, f->conn_id.id, f->conn_id.id_len) in ossl_quic_wire_encode_frame_new_conn_id() 429 if (cid->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_wire_encode_transport_param_cid() 434 cid->id_len) in ossl_quic_wire_encode_transport_param_cid() 809 f->conn_id.id_len = (unsigned char)len; in ossl_quic_wire_decode_frame_new_conn_id() 968 cid->id_len = (unsigned char)len; in ossl_quic_wire_decode_transport_param_cid() 969 memcpy(cid->id, body, cid->id_len); in ossl_quic_wire_decode_transport_param_cid() 1005 p->cid.id_len = (unsigned char)cidl; in ossl_quic_wire_decode_transport_param_preferred_addr()
|
| H A D | quic_trace.c | 64 if (id->id_len == 0) { in put_conn_id() 70 put_data(bio, id->id, id->id_len); in put_conn_id() 570 size_t id_len = 0; in ossl_quic_trace() local 592 id_len = ossl_quic_channel_get_short_header_conn_id_len(ch); in ossl_quic_trace() 593 if (ossl_quic_wire_decode_pkt_hdr(&pkt, id_len, 0, 1, &hdr, NULL, in ossl_quic_trace()
|
| H A D | quic_rcidm.c | 266 assert(rcid->cid.id_len > 0 && rcid->cid.id_len <= QUIC_MAX_CONN_ID_LEN); in rcidm_check_rcid() 348 if (cid->id_len < 1 || cid->id_len > QUIC_MAX_CONN_ID_LEN in rcidm_create_rcid()
|
| /src/crypto/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()
|
| /src/crypto/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>. 51 The callback is only allowed to generate a shorter id and reduce 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) [all …]
|
| /src/usr.sbin/bsnmpd/modules/snmp_hostres/ |
| H A D | hostres_partition_tbl.c | 157 size_t id_len; in partition_entry_create() local 184 id_len = strlen(chunk_name) + 1; in partition_entry_create() 185 if (id_len > PART_STR_MLEN) in partition_entry_create() 186 id_len = PART_STR_MLEN; in partition_entry_create() 188 if ((map->id = malloc(id_len)) == NULL) { in partition_entry_create() 195 strlcpy(map->id, chunk_name, id_len); in partition_entry_create() 230 id_len = strlen(_PATH_DEV) + strlen(chunk_name) + 1; in partition_entry_create() 232 if (id_len > PART_STR_MLEN) in partition_entry_create() 233 id_len = PART_STR_MLEN; in partition_entry_create() 235 if ((entry->label = malloc(id_len )) == NULL) { in partition_entry_create() [all …]
|
| /src/crypto/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() 417 const size_t id_len, in ossl_sm2_do_sign() argument 423 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len); in ossl_sm2_do_sign() 440 const size_t id_len, in ossl_sm2_do_verify() argument 446 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len); in ossl_sm2_do_verify()
|
| /src/crypto/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,
|
| /src/crypto/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() 385 dstctx->id = OPENSSL_malloc(srcctx->id_len); in sm2sig_dupctx() 388 dstctx->id_len = srcctx->id_len; in sm2sig_dupctx() 389 memcpy(dstctx->id, srcctx->id, srcctx->id_len); in sm2sig_dupctx() 464 psm2ctx->id_len = tmp_idlen; in sm2sig_set_ctx_params()
|
| /src/contrib/wpa/src/eap_server/ |
| H A D | eap_server_ttls.c | 92 u8 id_len; in eap_ttls_valid_session() local 95 id_len = sm->identity_len; in eap_ttls_valid_session() 97 id_len = 255; in eap_ttls_valid_session() 98 wpabuf_put_u8(buf, id_len); in eap_ttls_valid_session() 99 wpabuf_put_data(buf, sm->identity, id_len); in eap_ttls_valid_session() 1205 u8 id_len; in eap_ttls_process() local 1236 id_len = *pos++; in eap_ttls_process() 1238 pos, id_len); in eap_ttls_process() 1240 sm->identity = os_malloc(id_len ? id_len : 1); in eap_ttls_process() 1247 os_memcpy(sm->identity, pos, id_len); in eap_ttls_process() [all …]
|
| H A D | eap_server_peap.c | 121 u8 id_len; in eap_peap_valid_session() local 124 id_len = sm->identity_len; in eap_peap_valid_session() 126 id_len = 255; in eap_peap_valid_session() 127 wpabuf_put_u8(buf, id_len); in eap_peap_valid_session() 128 wpabuf_put_data(buf, sm->identity, id_len); in eap_peap_valid_session() 1279 u8 id_len; in eap_peap_process() local 1311 id_len = *pos++; in eap_peap_process() 1313 pos, id_len); in eap_peap_process() 1315 sm->identity = os_malloc(id_len ? id_len : 1); in eap_peap_process() 1322 os_memcpy(sm->identity, pos, id_len); in eap_peap_process() [all …]
|
| H A D | eap_server_gpsk.c | 28 size_t id_len; member 429 data->session_id, &data->id_len) < 0) { in eap_gpsk_process_gpsk_2() 435 data->session_id, data->id_len); in eap_gpsk_process_gpsk_2() 619 sid = os_memdup(data->session_id, data->id_len); in eap_gpsk_get_session_id() 622 *len = data->id_len; in eap_gpsk_get_session_id()
|
| /src/contrib/libfido2/tools/ |
| H A D | credman.c | 246 size_t id_len = 0; in credman_delete_rk() local 250 if (base64_decode(id, &id_ptr, &id_len) < 0) { in credman_delete_rk() 254 if ((r = fido_credman_del_dev_rk(dev, id_ptr, id_len, in credman_delete_rk() 258 r = fido_credman_del_dev_rk(dev, id_ptr, id_len, pin); in credman_delete_rk()
|
| /src/contrib/wpa/src/eap_peer/ |
| H A D | eap_tls.c | 25 size_t id_len; member 229 &data->id_len); in eap_tls_success() 232 data->session_id, data->id_len); in eap_tls_success() 421 id = os_memdup(data->session_id, data->id_len); in eap_tls_get_session_id() 425 *len = data->id_len; in eap_tls_get_session_id()
|
| H A D | eap_gpsk.c | 27 size_t id_len; member 384 data->session_id, &data->id_len) < 0) { in eap_gpsk_send_gpsk_2() 391 data->session_id, data->id_len); in eap_gpsk_send_gpsk_2() 756 sid = os_memdup(data->session_id, data->id_len); in eap_gpsk_get_session_id() 759 *len = data->id_len; in eap_gpsk_get_session_id()
|
| H A D | eap_fast.c | 57 size_t id_len; member 821 sm, &data->ssl, EAP_TYPE_FAST, &data->id_len); in eap_fast_process_crypto_binding() 824 data->session_id, data->id_len); in eap_fast_process_crypto_binding() 1354 static const u8 * eap_fast_get_a_id(const u8 *buf, size_t len, size_t *id_len) in eap_fast_get_a_id() argument 1364 *id_len = len; in eap_fast_get_a_id() 1374 *id_len = tlen; in eap_fast_get_a_id() 1377 wpa_hexdump_ascii(MSG_DEBUG, "EAP-FAST: A-ID", a_id, *id_len); in eap_fast_get_a_id() 1780 id = os_memdup(data->session_id, data->id_len); in eap_fast_get_session_id() 1784 *len = data->id_len; in eap_fast_get_session_id()
|
| /src/crypto/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()
|
| /src/contrib/wpa/src/radius/ |
| H A D | radius_server.c | 564 size_t user_len, id_len; in radius_server_get_new_session() local 628 &id_len, NULL) == 0) { in radius_server_get_new_session() 632 if (id_len >= sizeof(buf)) in radius_server_get_new_session() 633 id_len = sizeof(buf) - 1; in radius_server_get_new_session() 634 os_memcpy(buf, id, id_len); in radius_server_get_new_session() 671 size_t id_len; in radius_srv_hs20_t_c_pending() local 679 id = eap_get_identity(sess->eap, &id_len); in radius_srv_hs20_t_c_pending() 682 id_str = os_malloc(id_len + 1); in radius_srv_hs20_t_c_pending() 685 os_memcpy(id_str, id, id_len); in radius_srv_hs20_t_c_pending() 686 id_str[id_len] = '\0'; in radius_srv_hs20_t_c_pending() [all …]
|
| /src/sbin/camcontrol/ |
| H A D | persist.c | 441 size_t table_size = 0, id_len = 0; in scsipersist() local 494 id_len += id->alloc_len; in scsipersist() 722 res_len = sizeof(struct scsi_per_res_reg_move) + id_len; in scsipersist() 733 res_len += id_len; in scsipersist() 780 scsi_ulto4b(id_len, id_hdr->additional_length); in scsipersist()
|
| /src/sys/dev/iicbus/pwm/ |
| H A D | adt746x.c | 351 int i, id_len, len = 0, location_len, prev_len = 0; in adt746x_fill_fan_prop() local 359 id_len = OF_getprop_alloc_multi(child, "hwctrl-id", sizeof(cell_t), (void **)&id); in adt746x_fill_fan_prop() 360 if (location_len == -1 || id_len == -1) { in adt746x_fill_fan_prop() 367 for (i = 0; i < id_len; i++) { in adt746x_fill_fan_prop()
|