| /webrtc/sctp/src/param/ |
| H A D | param_state_cookie.rs | 9 pub(crate) cookie: Bytes, field 15 write!(f, "{}: {:?}", self.header(), self.cookie) in fmt() 29 let cookie = raw.slice(PARAM_HEADER_LENGTH..PARAM_HEADER_LENGTH + header.value_length()); in unmarshal() localVariable 30 Ok(ParamStateCookie { cookie }) in unmarshal() 35 buf.extend(self.cookie.clone()); in marshal_to() 40 self.cookie.len() in value_length() 54 let mut cookie = BytesMut::new(); in new() localVariable 55 cookie.resize(32, 0); in new() 56 rand::thread_rng().fill(cookie.as_mut()); in new() 59 cookie: cookie.freeze(), in new()
|
| /webrtc/dtls/src/handshake/ |
| H A D | handshake_message_hello_verify_request.rs | 30 pub(crate) cookie: Vec<u8>, field 39 1 + 1 + 1 + self.cookie.len() in size() 43 if self.cookie.len() > 255 { in marshal() 49 writer.write_u8(self.cookie.len() as u8)?; in marshal() 50 writer.write_all(&self.cookie)?; in marshal() 59 let mut cookie = vec![]; in unmarshal() localVariable 60 reader.read_to_end(&mut cookie)?; in unmarshal() 62 if cookie.len() < cookie_length as usize { in unmarshal() 68 cookie, in unmarshal()
|
| H A D | handshake_message_client_hello.rs | 26 pub(crate) cookie: Vec<u8>, field 37 && self.cookie == other.cookie in eq() 64 format!("cookie: {:?}", self.cookie), in fmt() 89 len += 1 + self.cookie.len(); in size() 104 if self.cookie.len() > 255 { in marshal() 115 writer.write_u8(self.cookie.len() as u8)?; in marshal() 116 writer.write_all(&self.cookie)?; in marshal() 148 let mut cookie = vec![0; cookie_len]; in unmarshal() localVariable 149 reader.read_exact(&mut cookie)?; in unmarshal() 188 cookie, in unmarshal()
|
| H A D | handshake_test.rs | 46 cookie: vec![], in test_handshake_message()
|
| /webrtc/sctp/src/chunk/ |
| H A D | chunk_cookie_echo.rs | 18 pub(crate) cookie: Bytes, field 44 let cookie = raw.slice(CHUNK_HEADER_SIZE..CHUNK_HEADER_SIZE + header.value_length()); in unmarshal() localVariable 45 Ok(ChunkCookieEcho { cookie }) in unmarshal() 50 buf.extend(self.cookie.clone()); in marshal_to() 59 self.cookie.len() in value_length()
|
| H A D | chunk_test.rs | 601 let cookie = Box::new(ParamStateCookie::new()); in test_init_marshal_unmarshal() localVariable 602 init_ack.params.push(cookie); in test_init_marshal_unmarshal()
|
| /webrtc/dtls/src/flight/ |
| H A D | flight2.rs | 82 if client_hello.cookie.is_empty() { in parse() 86 if state.cookie != client_hello.cookie { in parse() 122 cookie: state.cookie.clone(), in generate()
|
| H A D | flight1.rs | 104 state.cookie = h.cookie.clone(); in parse() 129 state.cookie = vec![]; in generate() 180 cookie: state.cookie.clone(), in generate()
|
| H A D | flight3.rs | 91 state.cookie = h.cookie.clone(); in parse() 400 cookie: state.cookie.clone(), in generate()
|
| H A D | flight0.rs | 189 state.cookie = vec![0; COOKIE_LENGTH]; in generate() 190 rand::thread_rng().fill(state.cookie.as_mut_slice()); in generate()
|
| /webrtc/dtls/src/conn/ |
| H A D | conn_test.rs | 1853 cookie, in test_server_timeout() 1951 let mut cookie = vec![0; 20]; in test_protocol_version_validation() localVariable 1979 cookie: cookie.clone(), in test_protocol_version_validation() 1999 cookie: cookie.clone(), in test_protocol_version_validation() 2016 cookie: cookie.clone(), in test_protocol_version_validation() 2108 cookie: cookie.clone(), in test_protocol_version_validation() 2273 cookie, in test_multiple_hello_verify_request() 2314 &client_hello.cookie, cookie, in test_multiple_hello_verify_request() 2316 i, &client_hello.cookie, cookie in test_multiple_hello_verify_request() 2335 cookie: Vec<u8>, in send_client_hello() [all …]
|
| /webrtc/dtls/src/handshake/handshake_message_hello_verify_request/ |
| H A D | handshake_message_hello_verify_request_test.rs | 16 cookie: vec![ in test_handshake_message_hello_verify_request()
|
| /webrtc/dtls/src/handshake/handshake_message_client_hello/ |
| H A D | handshake_message_client_hello_test.rs | 37 cookie: vec![ in test_handshake_message_client_hello()
|
| /webrtc/dtls/src/ |
| H A D | state.rs | 40 pub(crate) cookie: Vec<u8>, field 89 cookie: vec![], in default()
|
| /webrtc/stun/src/ |
| H A D | message.rs | 281 let cookie = u32::from_be_bytes([buf[4], buf[5], buf[6], buf[7]]); // last 4 bytes in decode() localVariable 284 if cookie != MAGIC_COOKIE { in decode()
|
| /webrtc/sctp/src/association/ |
| H A D | association_internal.rs | 780 cookie: v.cookie.clone(), in handle_init_ack() 829 if my_cookie.cookie != c.cookie { in handle_cookie_echo() 836 if my_cookie.cookie != c.cookie { in handle_cookie_echo()
|