Home
last modified time | relevance | path

Searched refs:tail_offset (Results 1 – 2 of 2) sorted by relevance

/webrtc/srtp/src/cipher/
H A Dcipher_aes_cm_hmac_sha1.rs162 let tail_offset = input.len() - (self.auth_tag_len() + SRTCP_INDEX_SIZE); in get_rtcp_index() localVariable
163 (BigEndian::read_u32(&input[tail_offset..tail_offset + SRTCP_INDEX_SIZE]) & !(1 << 31)) in get_rtcp_index()
290 let tail_offset = encrypted.len() - (self.auth_tag_len() + SRTCP_INDEX_SIZE); in decrypt_rtcp() localVariable
292 let mut writer = BytesMut::with_capacity(tail_offset); in decrypt_rtcp()
294 writer.extend_from_slice(&encrypted[0..tail_offset]); in decrypt_rtcp()
296 let is_encrypted = encrypted[tail_offset] >> 7; in decrypt_rtcp()
/webrtc/srtp/src/context/
H A Dsrtcp_test.rs204 let tail_offset = encrypted.len() - (auth_tag_len + SRTCP_INDEX_SIZE); in get_rtcp_index() localVariable
205 let reader = &mut encrypted.slice(tail_offset..tail_offset + SRTCP_INDEX_SIZE); in get_rtcp_index()