/external/rust/crates/quiche/src/ |
D | packet.rs | 142 pub dcid: Vec<u8>, field 198 let dcid = b.get_bytes(dcid_len)?; in from_bytes() localVariable 203 dcid: dcid.to_vec(), in from_bytes() 232 let dcid = b.get_bytes(dcid_len as usize)?.to_vec(); in from_bytes() localVariable 277 dcid, in from_bytes() 309 out.put_bytes(&self.dcid)?; in to_bytes() 329 out.put_u8(self.dcid.len() as u8)?; in to_bytes() 330 out.put_bytes(&self.dcid)?; in to_bytes() 379 for b in &self.dcid { in fmt() 579 scid: &[u8], dcid: &[u8], out: &mut [u8], in negotiate_version() [all …]
|
D | ffi.rs | 263 scid: *mut u8, scid_len: *mut size_t, dcid: *mut u8, dcid_len: *mut size_t, in quiche_header_info() 295 if *dcid_len < hdr.dcid.len() { in quiche_header_info() 299 let dcid = slice::from_raw_parts_mut(dcid, *dcid_len); in quiche_header_info() localVariable 300 let dcid = &mut dcid[..hdr.dcid.len()]; in quiche_header_info() localVariable 301 dcid.copy_from_slice(&hdr.dcid); in quiche_header_info() 303 *dcid_len = hdr.dcid.len(); in quiche_header_info() 367 scid: *const u8, scid_len: size_t, dcid: *const u8, dcid_len: size_t, in quiche_negotiate_version() 371 let dcid = unsafe { slice::from_raw_parts(dcid, dcid_len) }; in quiche_negotiate_version() localVariable 374 match negotiate_version(scid, dcid, out) { in quiche_negotiate_version() 388 scid: *const u8, scid_len: size_t, dcid: *const u8, dcid_len: size_t, in quiche_retry() [all …]
|
D | lib.rs | 780 dcid: Vec<u8>, field 1003 scid: &[u8], dcid: &[u8], out: &mut [u8], in negotiate_version() 1005 packet::negotiate_version(scid, dcid, out) in negotiate_version() 1067 scid: &[u8], dcid: &[u8], new_scid: &[u8], token: &[u8], version: u32, in retry() 1070 packet::retry(scid, dcid, new_scid, token, version, out) in retry() 1138 dcid: Vec::new(), in with_tls() 1261 let mut dcid = [0; 16]; in with_tls() localVariable 1262 rand::rand_bytes(&mut dcid[..]); in with_tls() 1265 &dcid, in with_tls() 1270 conn.dcid.extend_from_slice(&dcid); in with_tls() [all …]
|
D | crypto.rs | 462 let dcid = [0x83, 0x94, 0xc8, 0xf0, 0x3e, 0x51, 0x57, 0x08]; in derive_initial_secrets() localVariable 472 derive_initial_secret(&dcid, crate::PROTOCOL_VERSION).unwrap(); in derive_initial_secrets() 541 let dcid = [0x83, 0x94, 0xc8, 0xf0, 0x3e, 0x51, 0x57, 0x08]; in derive_initial_secrets_old() localVariable 551 derive_initial_secret(&dcid, crate::PROTOCOL_VERSION_DRAFT28) in derive_initial_secrets_old()
|
/external/rust/crates/quiche/examples/ |
D | server.c | 118 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument 123 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token() 172 static struct conn_io *create_conn(uint8_t *dcid, size_t dcid_len, uint8_t *odcid, in create_conn() argument 180 memcpy(conn_io->cid, dcid, LOCAL_CONN_ID_LEN); in create_conn() 233 uint8_t dcid[QUICHE_MAX_CONN_ID_LEN]; in recv_cb() local 234 size_t dcid_len = sizeof(dcid); in recv_cb() 243 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb() 250 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb() 257 dcid, dcid_len, in recv_cb() 281 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb() [all …]
|
D | http3-server.c | 121 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument 126 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token() 249 uint8_t dcid[QUICHE_MAX_CONN_ID_LEN]; in recv_cb() local 250 size_t dcid_len = sizeof(dcid); in recv_cb() 259 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb() 266 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb() 273 dcid, dcid_len, in recv_cb() 297 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb() 307 dcid, dcid_len, in recv_cb() 337 conn_io = create_conn(dcid, dcid_len, odcid, odcid_len); in recv_cb()
|
D | server.rs | 170 let conn_id = ring::hmac::sign(&conn_id_seed, &hdr.dcid); in main() 175 let (_, client) = if !clients.contains_key(&hdr.dcid) && in main() 187 quiche::negotiate_version(&hdr.scid, &hdr.dcid, &mut out) in main() 217 &hdr.dcid, in main() 247 if scid.len() != hdr.dcid.len() { in main() 254 scid.copy_from_slice(&hdr.dcid); in main() 258 hex_dump(&hdr.dcid), in main() 273 match clients.get_mut(&hdr.dcid) { in main() 396 token.extend_from_slice(&hdr.dcid); in mint_token()
|
D | http3-server.rs | 178 let conn_id = ring::hmac::sign(&conn_id_seed, &hdr.dcid); in main() 183 let (_, client) = if !clients.contains_key(&hdr.dcid) && in main() 195 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 scid.copy_from_slice(&hdr.dcid); in main() 266 hex_dump(&hdr.dcid), in main() 282 match clients.get_mut(&hdr.dcid) { in main() 453 token.extend_from_slice(&hdr.dcid); in mint_token()
|
/external/rust/crates/quiche/include/ |
D | quiche.h | 199 uint8_t *dcid, size_t *dcid_len, 216 const uint8_t *dcid, size_t dcid_len, 221 const uint8_t *dcid, size_t dcid_len,
|
/external/curl/lib/vquic/ |
D | ngtcp2.h | 47 ngtcp2_cid dcid; member
|
D | ngtcp2.c | 811 qs->dcid.datalen = NGTCP2_MAX_CIDLEN; in Curl_quic_connect() 812 result = Curl_rand(data, qs->dcid.data, NGTCP2_MAX_CIDLEN); in Curl_quic_connect() 834 rc = ngtcp2_conn_client_new(&qs->qconn, &qs->dcid, &qs->scid, &path, in Curl_quic_connect()
|
/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
|