Home
last modified time | relevance | path

Searched refs:u8 (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/webrtc/dtls/src/prf/
H A Dmod.rs59 pub(crate) fn prf_psk_pre_master_secret(psk: &[u8]) -> Vec<u8> { in prf_psk_pre_master_secret() argument
73 public_key: &[u8], in prf_pre_master_secret() argument
76 ) -> Result<Vec<u8>> { in prf_pre_master_secret() argument
86 public_key: &[u8], in elliptic_curve_pre_master_secret() argument
89 ) -> Result<Vec<u8>> { in elliptic_curve_pre_master_secret() argument
143 fn hmac_sha(h: CipherSuiteHash, key: &[u8], data: &[u8]) -> Result<Vec<u8>> { in hmac_sha() argument
156 secret: &[u8], in prf_p_hash() argument
157 seed: &[u8], in prf_p_hash() argument
160 ) -> Result<Vec<u8>> { in prf_p_hash() argument
298 payload: &[u8], in prf_mac() argument
[all …]
/webrtc/webrtc/src/mux/
H A Dmux_func.rs2 pub type MatchFunc = Box<dyn (Fn(&[u8]) -> bool) + Send + Sync>;
5 pub fn match_all(_b: &[u8]) -> bool { in match_all()
10 pub fn match_range(lower: u8, upper: u8) -> MatchFunc { in match_range() argument
11 Box::new(move |buf: &[u8]| -> bool { in match_range()
35 pub fn match_dtls(b: &[u8]) -> bool { in match_dtls()
41 pub fn match_srtp_or_srtcp(b: &[u8]) -> bool { in match_srtp_or_srtcp()
45 pub(crate) fn is_rtcp(buf: &[u8]) -> bool { in is_rtcp()
56 pub fn match_srtp(buf: &[u8]) -> bool { in match_srtp()
61 pub fn match_srtcp(buf: &[u8]) -> bool { in match_srtcp()
/webrtc/mdns/src/message/
H A Dpacker.rs5 pub(crate) fn pack_bytes(mut msg: Vec<u8>, field: &[u8]) -> Vec<u8> { in pack_bytes() argument
10 pub(crate) fn unpack_bytes(msg: &[u8], off: usize, field: &mut [u8]) -> Result<usize> { in unpack_bytes() argument
20 pub(crate) fn pack_uint16(mut msg: Vec<u8>, field: u16) -> Vec<u8> { in pack_uint16() argument
25 pub(crate) fn unpack_uint16(msg: &[u8], off: usize) -> Result<(u16, usize)> { in unpack_uint16() argument
36 pub(crate) fn skip_uint16(msg: &[u8], off: usize) -> Result<usize> { in skip_uint16() argument
44 pub(crate) fn pack_uint32(mut msg: Vec<u8>, field: u32) -> Vec<u8> { in pack_uint32() argument
49 pub(crate) fn unpack_uint32(msg: &[u8], off: usize) -> Result<(u32, usize)> { in unpack_uint32() argument
60 pub(crate) fn skip_uint32(msg: &[u8], off: usize) -> Result<usize> { in skip_uint32() argument
68 pub(crate) fn pack_str(mut msg: Vec<u8>, field: &str) -> Result<Vec<u8>> { in pack_str() argument
73 msg.push(l as u8); in pack_str()
[all …]
/webrtc/srtp/src/
H A Dkey_derivation.rs10 pub const LABEL_SRTP_ENCRYPTION: u8 = 0x00;
12 pub const LABEL_SRTP_SALT: u8 = 0x02;
13 pub const LABEL_SRTCP_ENCRYPTION: u8 = 0x03;
15 pub const LABEL_SRTCP_SALT: u8 = 0x05;
20 label: u8, in aes_cm_key_derivation() argument
21 master_key: &[u8], in aes_cm_key_derivation() argument
22 master_salt: &[u8], in aes_cm_key_derivation() argument
25 ) -> Result<Vec<u8>> { in aes_cm_key_derivation() argument
76 session_salt: &[u8], in generate_counter() argument
77 ) -> Result<Vec<u8>> { in generate_counter() argument
[all …]
/webrtc/rtcp/src/
H A Dheader.rs9 #[repr(u8)]
24 pub const FORMAT_SLI: u8 = 2;
26 pub const FORMAT_PLI: u8 = 1;
28 pub const FORMAT_FIR: u8 = 4;
30 pub const FORMAT_TLN: u8 = 1;
32 pub const FORMAT_RRR: u8 = 5;
34 pub const FORMAT_REMB: u8 = 15;
37 pub const FORMAT_TCC: u8 = 15;
56 impl From<u8> for PacketType {
57 fn from(b: u8) -> Self { in from()
[all …]
/webrtc/dtls/src/crypto/
H A Dcrypto_cbc.rs31 local_key: Vec<u8>,
32 remote_key: Vec<u8>,
33 write_mac: Vec<u8>,
34 read_mac: Vec<u8>,
42 local_key: &[u8], in new() argument
43 local_mac: &[u8], in new() argument
44 remote_key: &[u8], in new() argument
45 remote_mac: &[u8], in new() argument
56 pub fn encrypt(&self, pkt_rlh: &RecordLayerHeader, raw: &[u8]) -> Result<Vec<u8>> { in encrypt() argument
73 let mut iv: Vec<u8> = vec![0; Self::BLOCK_SIZE]; in encrypt()
[all …]
H A Dcrypto_gcm.rs30 local_write_iv: Vec<u8>,
31 remote_write_iv: Vec<u8>,
36 local_key: &[u8], in new() argument
37 local_write_iv: &[u8], in new() argument
38 remote_key: &[u8], in new() argument
39 remote_write_iv: &[u8], in new() argument
55 pub fn encrypt(&self, pkt_rlh: &RecordLayerHeader, raw: &[u8]) -> Result<Vec<u8>> { in encrypt() argument
66 let mut buffer: Vec<u8> = Vec::new(); in encrypt()
86 pub fn decrypt(&self, r: &[u8]) -> Result<Vec<u8>> { in decrypt() argument
107 let mut buffer: Vec<u8> = Vec::new(); in decrypt()
H A Dcrypto_ccm.rs49 local_write_iv: Vec<u8>,
50 remote_write_iv: Vec<u8>,
52 local_write_key: Vec<u8>,
53 remote_write_key: Vec<u8>,
80 local_key: &[u8], in new() argument
81 local_write_iv: &[u8], in new() argument
82 remote_key: &[u8], in new() argument
83 remote_write_iv: &[u8], in new() argument
107 pub fn encrypt(&self, pkt_rlh: &RecordLayerHeader, raw: &[u8]) -> Result<Vec<u8>> { in encrypt() argument
118 let mut buffer: Vec<u8> = Vec::new(); in encrypt()
[all …]
H A Dmod.rs117 client_random: &[u8], in value_key_message() argument
118 server_random: &[u8], in value_key_message() argument
119 public_key: &[u8], in value_key_message() argument
121 ) -> Vec<u8> { in value_key_message() argument
284 client_random: &[u8], in generate_key_signature() argument
285 server_random: &[u8], in generate_key_signature() argument
286 public_key: &[u8], in generate_key_signature() argument
289 ) -> Result<Vec<u8>> { in generate_key_signature() argument
323 message: &[u8], in verify_signature() argument
386 message: &[u8], in verify_key_signature() argument
[all …]
/webrtc/rtp/src/codecs/vp8/
H A Dmod.rs118 pub x: u8,
120 pub n: u8,
122 pub s: u8,
124 pub pid: u8,
128 pub i: u8,
130 pub l: u8,
132 pub t: u8,
134 pub k: u8,
142 pub tid: u8,
144 pub y: u8,
[all …]
/webrtc/dtls/src/
H A Dstate.rs26 pub(crate) master_secret: Vec<u8>,
30 pub peer_certificates: Vec<Vec<u8>>,
31 pub identity_hint: Vec<u8>,
35 pub(crate) pre_master_secret: Vec<u8>,
40 pub(crate) cookie: Vec<u8>,
56 local_random: [u8; HANDSHAKE_RANDOM_LENGTH],
57 remote_random: [u8; HANDSHAKE_RANDOM_LENGTH],
59 master_secret: Vec<u8>,
62 peer_certificates: Vec<Vec<u8>>,
63 identity_hint: Vec<u8>,
[all …]
/webrtc/media/src/io/ogg_reader/
H A Dmod.rs13 pub const PAGE_HEADER_TYPE_END_OF_STREAM: u8 = 0x04;
15 pub const PAGE_HEADER_SIGNATURE: &[u8] = b"OggS";
16 pub const ID_PAGE_SIGNATURE: &[u8] = b"OpusHead";
17 pub const COMMENT_PAGE_SIGNATURE: &[u8] = b"OpusTags";
33 pub channel_map: u8,
34 pub channels: u8,
38 pub version: u8,
47 sig: [u8; 4],
48 version: u8,
49 header_type: u8,
[all …]
/webrtc/rtcp/src/extended_report/
H A Dvm.rs32 pub loss_rate: u8,
35 pub gap_density: u8,
41 pub noise_level: u8,
42 pub rerl: u8,
43 pub gmin: u8,
44 pub rfactor: u8,
45 pub ext_rfactor: u8,
46 pub mos_lq: u8,
47 pub mos_cq: u8,
48 pub rx_config: u8,
[all …]
/webrtc/dtls/src/record_layer/
H A Drecord_layer_header.rs11 pub const DTLS1_2MAJOR: u8 = 0xfe;
12 pub const DTLS1_2MINOR: u8 = 0xfd;
14 pub const DTLS1_0MAJOR: u8 = 0xfe;
15 pub const DTLS1_0MINOR: u8 = 0xff;
33 pub major: u8,
34 pub minor: u8,
52 writer.write_u8(self.content_type as u8)?; in marshal()
57 let be: [u8; 8] = self.sequence_number.to_be_bytes(); in marshal()
72 let mut be: [u8; 8] = [0u8; 8]; in unmarshal()
/webrtc/rtp/src/
H A Dheader.rs7 pub const VERSION_SHIFT: u8 = 6;
8 pub const VERSION_MASK: u8 = 0x3;
9 pub const PADDING_SHIFT: u8 = 5;
10 pub const PADDING_MASK: u8 = 0x1;
11 pub const EXTENSION_SHIFT: u8 = 4;
16 pub const CC_MASK: u8 = 0xF;
17 pub const MARKER_SHIFT: u8 = 7;
19 pub const PT_MASK: u8 = 0x7F;
31 pub id: u8,
39 pub version: u8,
[all …]
/webrtc/rtp/src/codecs/h265/
H A Dmod.rs18 const H265NALU_PACI_PACKET_TYPE: u8 = 50;
31 fn new(high_byte: u8, low_byte: u8) -> Self { in new() argument
41 pub fn nalu_type(&self) -> u8 { in nalu_type() argument
55 pub fn layer_id(&self) -> u8 { in layer_id() argument
58 ((self.0 & MASK) >> 3) as u8 in layer_id()
62 pub fn tid(&self) -> u8 { in tid() argument
64 (self.0 & MASK) as u8 in tid()
231 dond: Option<u8>,
408 pub fn fu_type(&self) -> u8 { in fu_type() argument
557 pub fn ctype(&self) -> u8 { in ctype() argument
[all …]
/webrtc/ice/src/candidate/
H A Dcandidate_test.rs20 network_type: AtomicU8::new(NetworkType::Tcp4 as u8), in test_candidate_priority()
30 network_type: AtomicU8::new(NetworkType::Tcp4 as u8), in test_candidate_priority()
40 network_type: AtomicU8::new(NetworkType::Tcp4 as u8), in test_candidate_priority()
145 network_type: AtomicU8::new(NetworkType::Udp4 as u8), in test_candidate_foundation()
152 network_type: AtomicU8::new(NetworkType::Udp4 as u8), in test_candidate_foundation()
163 network_type: AtomicU8::new(NetworkType::Udp4 as u8), in test_candidate_foundation()
170 network_type: AtomicU8::new(NetworkType::Udp4 as u8), in test_candidate_foundation()
181 network_type: AtomicU8::new(NetworkType::Udp4 as u8), in test_candidate_foundation()
188 network_type: AtomicU8::new(NetworkType::Udp6 as u8), in test_candidate_foundation()
199 network_type: AtomicU8::new(NetworkType::Udp4 as u8), in test_candidate_foundation()
[all …]
/webrtc/srtp/src/cipher/
H A Dmod.rs38 fn get_rtcp_index(&self, input: &[u8]) -> usize; in get_rtcp_index()
43 payload: &[u8], in encrypt_rtp() argument
51 payload: &[u8], in decrypt_rtp() argument
57 fn encrypt_rtcp(&mut self, payload: &[u8], srtcp_index: usize, ssrc: u32) -> Result<Bytes>; in encrypt_rtcp() argument
60 fn decrypt_rtcp(&mut self, payload: &[u8], srtcp_index: usize, ssrc: u32) -> Result<Bytes>; in decrypt_rtcp() argument
H A Dcipher_aead_aes_gcm.rs17 const RTCP_ENCRYPTION_FLAG: u8 = 0x80;
23 srtp_session_salt: Vec<u8>,
24 srtcp_session_salt: Vec<u8>,
34 payload: &[u8], in encrypt_rtp() argument
61 ciphertext: &[u8], in decrypt_rtp() argument
71 let decrypted_msg: Vec<u8> = self.srtp_cipher.decrypt( in decrypt_rtp()
129 fn get_rtcp_index(&self, input: &[u8]) -> usize { in get_rtcp_index()
139 pub(crate) fn new(master_key: &[u8], master_salt: &[u8]) -> Result<CipherAeadAesGcm> { in new() argument
198 ) -> Vec<u8> { in rtp_initialization_vector() argument
238 rtcp_packet: &[u8], in rtcp_additional_authenticated_data() argument
[all …]
H A Dcipher_aes_cm_hmac_sha1.rs21 srtp_session_key: Vec<u8>,
22 srtp_session_salt: Vec<u8>,
25 srtcp_session_key: Vec<u8>,
26 srtcp_session_salt: Vec<u8>,
32 pub fn new(master_key: &[u8], master_salt: &[u8]) -> Result<Self> { in new() argument
111 fn generate_srtp_auth_tag(&mut self, buf: &[u8], roc: u32) -> Result<Vec<u8>> { in generate_srtp_auth_tag() argument
117 let mut roc_buf: Vec<u8> = vec![]; in generate_srtp_auth_tag()
143 fn generate_srtcp_auth_tag(&mut self, buf: &[u8]) -> Vec<u8> { in generate_srtcp_auth_tag() argument
161 fn get_rtcp_index(&self, input: &[u8]) -> usize { in get_rtcp_index()
169 payload: &[u8], in encrypt_rtp() argument
[all …]
/webrtc/dtls/src/cipher_suite/
H A Dcipher_suite_tls_psk_with_aes_128_gcm_sha256.rs43 master_secret: &[u8], in init() argument
44 client_random: &[u8], in init() argument
45 server_random: &[u8], in init() argument
77 fn encrypt(&self, pkt_rlh: &RecordLayerHeader, raw: &[u8]) -> Result<Vec<u8>> { in encrypt() argument
87 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt() argument
H A Dcipher_suite_aes_128_gcm_sha256.rs60 master_secret: &[u8], in init() argument
61 client_random: &[u8], in init() argument
62 server_random: &[u8], in init() argument
94 fn encrypt(&self, pkt_rlh: &RecordLayerHeader, raw: &[u8]) -> Result<Vec<u8>> { in encrypt() argument
104 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt() argument
H A Dcipher_suite_aes_256_cbc_sha.rs60 master_secret: &[u8], in init() argument
61 client_random: &[u8], in init() argument
62 server_random: &[u8], in init() argument
94 fn encrypt(&self, pkt_rlh: &RecordLayerHeader, raw: &[u8]) -> Result<Vec<u8>> { in encrypt() argument
104 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt() argument
H A Dcipher_suite_aes_128_ccm.rs63 master_secret: &[u8], in init() argument
64 client_random: &[u8], in init() argument
65 server_random: &[u8], in init() argument
99 fn encrypt(&self, pkt_rlh: &RecordLayerHeader, raw: &[u8]) -> Result<Vec<u8>> { in encrypt() argument
109 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt() argument
/webrtc/mdns/src/message/resource/
H A Dmod.rs64 msg: Vec<u8>, in pack() argument
67 ) -> Result<Vec<u8>> { in pack() argument
90 pub(crate) fn skip(msg: &[u8], off: usize) -> Result<usize> { in skip() argument
147 mut msg: Vec<u8>, in pack() argument
150 ) -> Result<(Vec<u8>, usize)> { in pack() argument
187 msg[len_off] = ((con_len >> 8) & 0xFF) as u8; in fix_len()
188 msg[len_off + 1] = (con_len & 0xFF) as u8; in fix_len()
226 let ttl = ((self.ttl >> 24) << 4) as u8 | rcode as u8; in extended_rcode()
242 msg: Vec<u8>, in pack() argument
245 ) -> Result<Vec<u8>>; in pack() argument
[all …]

12345678910>>...13