/external/rust/crates/quiche/src/ |
D | packet.rs | 294 pub dcid: ConnectionId<'a>, field 353 let dcid = b.get_bytes(dcid_len)?; in from_bytes() localVariable 358 dcid: dcid.to_vec().into(), in from_bytes() 387 let dcid = b.get_bytes(dcid_len as usize)?.to_vec(); in from_bytes() localVariable 432 dcid: dcid.into(), in from_bytes() 464 out.put_bytes(&self.dcid)?; in to_bytes() 484 out.put_u8(self.dcid.len() as u8)?; in to_bytes() 485 out.put_bytes(&self.dcid)?; in to_bytes() 533 write!(f, " dcid={:?}", self.dcid)?; in fmt() 735 scid: &[u8], dcid: &[u8], out: &mut [u8], in negotiate_version() [all …]
|
D | ffi.rs | 395 scid: *mut u8, scid_len: *mut size_t, dcid: *mut u8, dcid_len: *mut size_t, in quiche_header_info() 427 if *dcid_len < hdr.dcid.len() { in quiche_header_info() 431 let dcid = slice::from_raw_parts_mut(dcid, *dcid_len); in quiche_header_info() localVariable 432 let dcid = &mut dcid[..hdr.dcid.len()]; in quiche_header_info() localVariable 433 dcid.copy_from_slice(&hdr.dcid); in quiche_header_info() 435 *dcid_len = hdr.dcid.len(); in quiche_header_info() 511 scid: *const u8, scid_len: size_t, dcid: *const u8, dcid_len: size_t, in quiche_negotiate_version() 517 let dcid = unsafe { slice::from_raw_parts(dcid, dcid_len) }; in quiche_negotiate_version() localVariable 518 let dcid = ConnectionId::from_ref(dcid); in quiche_negotiate_version() localVariable 522 match negotiate_version(&scid, &dcid, out) { in quiche_negotiate_version() [all …]
|
D | cid.rs | 807 let (dcid, _) = create_cid_and_reset_token(16); in ids_new_scids() 811 ids.set_initial_dcid(dcid, None, Some(0)); in ids_new_scids() 866 let (dcid, _) = create_cid_and_reset_token(16); in new_dcid_event() 869 ids.set_initial_dcid(dcid, None, Some(0)); in new_dcid_event() 932 let (dcid, _) = create_cid_and_reset_token(16); in retire_scids() 935 ids.set_initial_dcid(dcid, None, Some(0)); in retire_scids()
|
D | crypto.rs | 707 let dcid = [0x83, 0x94, 0xc8, 0xf0, 0x3e, 0x51, 0x57, 0x08]; in derive_initial_secrets_v1() localVariable 717 derive_initial_secret(&dcid, crate::PROTOCOL_VERSION_V1); in derive_initial_secrets_v1() 786 let dcid = [0x83, 0x94, 0xc8, 0xf0, 0x3e, 0x51, 0x57, 0x08]; in derive_initial_secrets_draft29() localVariable 796 derive_initial_secret(&dcid, crate::PROTOCOL_VERSION_DRAFT29); in derive_initial_secrets_draft29() 865 let dcid = [0x83, 0x94, 0xc8, 0xf0, 0x3e, 0x51, 0x57, 0x08]; in derive_initial_secrets_draft27() localVariable 875 derive_initial_secret(&dcid, crate::PROTOCOL_VERSION_DRAFT27); in derive_initial_secrets_draft27()
|
D | lib.rs | 1485 scid: &ConnectionId, dcid: &ConnectionId, out: &mut [u8], in negotiate_version() 1487 packet::negotiate_version(scid, dcid, out) in negotiate_version() 1551 scid: &ConnectionId, dcid: &ConnectionId, new_scid: &ConnectionId, in retry() 1554 packet::retry(scid, dcid, new_scid, token, version, out) in retry() 1860 let mut dcid = [0; 16]; in with_tls() localVariable 1861 rand::rand_bytes(&mut dcid[..]); in with_tls() 1864 &dcid, in with_tls() 1871 dcid.to_vec().into(), in with_tls() 2247 if hdr.dcid != self.source_id() { in recv_single() 2431 &hdr.dcid, in recv_single() [all …]
|
/external/rust/crates/quiche/examples/ |
D | server.c | 125 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument 130 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token() 258 uint8_t dcid[QUICHE_MAX_CONN_ID_LEN]; in recv_cb() local 259 size_t dcid_len = sizeof(dcid); in recv_cb() 268 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb() 275 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb() 282 dcid, dcid_len, in recv_cb() 306 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb() 316 dcid, dcid_len, in recv_cb() 346 conn_io = create_conn(dcid, dcid_len, odcid, odcid_len, in recv_cb()
|
D | http3-server.c | 127 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument 132 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token() 269 uint8_t dcid[QUICHE_MAX_CONN_ID_LEN]; in recv_cb() local 270 size_t dcid_len = sizeof(dcid); in recv_cb() 279 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb() 286 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb() 293 dcid, dcid_len, in recv_cb() 317 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb() 327 dcid, dcid_len, in recv_cb() 357 conn_io = create_conn(dcid, dcid_len, odcid, odcid_len, in recv_cb()
|
D | server.rs | 173 let conn_id = ring::hmac::sign(&conn_id_seed, &hdr.dcid); in main() 179 let client = if !clients.contains_key(&hdr.dcid) && in main() 191 quiche::negotiate_version(&hdr.scid, &hdr.dcid, &mut out) in main() 223 &hdr.dcid, in main() 253 if scid.len() != hdr.dcid.len() { in main() 260 let scid = hdr.dcid.clone(); in main() 262 debug!("New connection: dcid={:?} scid={:?}", hdr.dcid, scid); in main() 282 match clients.get_mut(&hdr.dcid) { in main() 409 token.extend_from_slice(&hdr.dcid); in mint_token()
|
D | http3-server.rs | 175 let conn_id = ring::hmac::sign(&conn_id_seed, &hdr.dcid); in main() 181 let client = if !clients.contains_key(&hdr.dcid) && in main() 193 quiche::negotiate_version(&hdr.scid, &hdr.dcid, &mut out) in main() 225 &hdr.dcid, in main() 255 if scid.len() != hdr.dcid.len() { in main() 262 let scid = hdr.dcid.clone(); in main() 264 debug!("New connection: dcid={:?} scid={:?}", hdr.dcid, scid); in main() 285 match clients.get_mut(&hdr.dcid) { in main() 467 token.extend_from_slice(&hdr.dcid); in mint_token()
|
/external/rust/crates/quiche/include/ |
D | quiche.h | 252 uint8_t *dcid, size_t *dcid_len, 274 const uint8_t *dcid, size_t dcid_len, 279 const uint8_t *dcid, size_t dcid_len,
|
/external/scapy/scapy/layers/ |
D | bluetooth.py | 164 return isinstance(other, L2CAP_ConnReq) and self.dcid == other.scid 185 return isinstance(other, L2CAP_ConfReq) and self.scid == other.dcid
|
/external/curl/lib/vquic/ |
D | curl_ngtcp2.c | 131 ngtcp2_cid dcid; member 2233 ctx->dcid.datalen = NGTCP2_MAX_CIDLEN; in cf_connect_start() 2234 result = Curl_rand(data, ctx->dcid.data, NGTCP2_MAX_CIDLEN); in cf_connect_start() 2266 rc = ngtcp2_conn_client_new(&ctx->qconn, &ctx->dcid, &ctx->scid, in cf_connect_start()
|