Home
last modified time | relevance | path

Searched refs:in_prefix_len (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/ring/src/aead/
Daes_gcm.rs80 in_prefix_len: usize, in aes_gcm_open()
89 Direction::Opening { in_prefix_len }, in aes_gcm_open()
114 let in_prefix_len = match direction { in aead() localVariable
115 Direction::Opening { in_prefix_len } => in_prefix_len, in aead()
119 let total_in_out_len = in_out.len() - in_prefix_len; in aead()
129 let in_out_len = in_out.len() - in_prefix_len; in aead()
136 let mut input = in_prefix_len; in aead()
150 &mut in_out[output..][..(chunk_len + in_prefix_len)], in aead()
166 shift::shift_partial((in_prefix_len, remainder), |remainder| { in aead()
215 Direction::Opening { in_prefix_len } => { in integrated_aes_gcm()
[all …]
Daes.rs70 ($name:ident, $in_out:expr, $in_prefix_len:expr, $key:expr, $ivec:expr ) => {{
80 ctr32_encrypt_blocks_($name, $in_out, $in_prefix_len, $key, $ivec)
94 in_prefix_len: usize, in ctr32_encrypt_blocks_()
98 let in_out_len = in_out.len().checked_sub(in_prefix_len).unwrap(); in ctr32_encrypt_blocks_()
105 let input = in_out[in_prefix_len..].as_ptr(); in ctr32_encrypt_blocks_()
205 let in_prefix_len = match direction { in ctr32_encrypt_blocks() localVariable
206 Direction::Opening { in_prefix_len } => in_prefix_len, in ctr32_encrypt_blocks()
210 let in_out_len = in_out.len().checked_sub(in_prefix_len).unwrap(); in ctr32_encrypt_blocks()
224 in_prefix_len, in ctr32_encrypt_blocks()
256 &mut in_out[..(bsaes_in_out_len + in_prefix_len)], in ctr32_encrypt_blocks()
[all …]
Dshift.rs18 pub fn shift_full_blocks<F>(in_out: &mut [u8], in_prefix_len: usize, mut transform: F) in shift_full_blocks()
24 let in_out_len = in_out.len().checked_sub(in_prefix_len).unwrap();
29 <&[u8; BLOCK_LEN]>::try_from(&in_out[(in_prefix_len + i)..][..BLOCK_LEN]).unwrap();
37 pub fn shift_partial<F>((in_prefix_len, in_out): (usize, &mut [u8]), transform: F) in shift_partial() argument
42 let input = &in_out[in_prefix_len..]; in shift_partial()
Dchacha20_poly1305.rs60 in_prefix_len: usize, in chacha20_poly1305_open()
69 Direction::Opening { in_prefix_len }, in chacha20_poly1305_open()
99 Direction::Opening { in_prefix_len } => { in aead()
100 poly1305_update_padded_16(&mut ctx, &in_out[in_prefix_len..]); in aead()
101 chacha20_key.encrypt_overlapping(counter, in_out, in_prefix_len); in aead()
102 in_out.len() - in_prefix_len in aead()
Dchacha.rs71 pub fn encrypt_overlapping(&self, counter: Counter, in_out: &mut [u8], in_prefix_len: usize) { in encrypt_overlapping()
78 let len = in_out.len() - in_prefix_len; in encrypt_overlapping()
79 if cfg!(any(target_arch = "arm", target_arch = "x86")) && in_prefix_len != 0 { in encrypt_overlapping()
80 in_out.copy_within(in_prefix_len.., 0); in encrypt_overlapping()
86 in_out[in_prefix_len..].as_ptr(), in encrypt_overlapping()
/external/rust/crates/ring/src/
Daead.rs197 let in_prefix_len = ciphertext_and_tag.start; in open_within_() localVariable
200 .checked_sub(in_prefix_len) in open_within_()
206 let (in_out, received_tag) = in_out.split_at_mut(in_prefix_len + ciphertext_len); in open_within_()
211 in_prefix_len, in open_within_()
576 in_prefix_len: usize,
663 Opening { in_prefix_len: usize },
/external/rust/crates/ring/tests/
Daead_tests.rs222 for in_prefix_len in in_prefix_lengths.iter() { in test_aead()
224 for _ in 0..*in_prefix_len { in test_aead()
236 *in_prefix_len.., in test_aead()