Home
last modified time | relevance | path

Searched refs:in_out (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/ring/src/
Daead.rs108 pub fn open_in_place<'in_out, A>( in open_in_place() argument
111 in_out: &'in_out mut [u8], in open_in_place()
112 ) -> Result<&'in_out mut [u8], error::Unspecified> in open_in_place()
116 self.open_within(aad, in_out, 0..) in open_in_place()
163 pub fn open_within<'in_out, A>( in open_within() argument
166 in_out: &'in_out mut [u8], in open_within()
168 ) -> Result<&'in_out mut [u8], error::Unspecified> in open_within()
176 in_out, in open_within()
183 fn open_within_<'in_out, A: AsRef<[u8]>>( in open_within_() argument
187 in_out: &'in_out mut [u8], in open_within_()
[all …]
/external/rust/crates/ring/src/aead/
Daes_gcm.rs70 in_out: &mut [u8], in aes_gcm_seal()
73 aead(key, nonce, aad, in_out, Direction::Sealing, cpu_features) in aes_gcm_seal()
81 in_out: &mut [u8], in aes_gcm_open()
88 in_out, in aes_gcm_open()
99 in_out: &mut [u8], in aead()
119 let total_in_out_len = in_out.len() - in_prefix_len; in aead()
121 let in_out = integrated_aes_gcm( in aead() localVariable
124 in_out, in aead()
129 let in_out_len = in_out.len() - in_prefix_len; in aead()
146 gcm_ctx.update_blocks(&in_out[input..][..chunk_len]); in aead()
[all …]
Dchacha.rs31 pub fn encrypt_in_place(&self, counter: Counter, in_out: &mut [u8]) { in encrypt_in_place()
35 in_out.as_ptr(), in encrypt_in_place()
36 in_out.len(), in encrypt_in_place()
37 in_out.as_mut_ptr(), in encrypt_in_place()
43 pub fn encrypt_iv_xor_blocks_in_place(&self, iv: Iv, in_out: &mut [u8; 2 * BLOCK_LEN]) { in encrypt_iv_xor_blocks_in_place()
47 in_out.as_ptr(),
48 in_out.len(),
49 in_out.as_mut_ptr(),
71 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()
[all …]
Dchacha20_poly1305.rs50 in_out: &mut [u8], in chacha20_poly1305_seal()
53 aead(key, nonce, aad, in_out, Direction::Sealing, cpu_features) in chacha20_poly1305_seal()
61 in_out: &mut [u8], in chacha20_poly1305_open()
68 in_out, in chacha20_poly1305_open()
81 in_out: &mut [u8], 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()
105 chacha20_key.encrypt_in_place(counter, in_out); in aead()
106 poly1305_update_padded_16(&mut ctx, in_out); in aead()
[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();
32 let output = <&mut [u8; BLOCK_LEN]>::try_from(&mut in_out[i..][..BLOCK_LEN]).unwrap();
37 pub fn shift_partial<F>((in_prefix_len, in_out): (usize, &mut [u8]), transform: F) in shift_partial()
42 let input = &in_out[in_prefix_len..]; in shift_partial()
50 in_out[..in_out_len].copy_from_slice(&block.as_ref()[..in_out_len]); in shift_partial()
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)
93 in_out: &mut [u8], 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_()
106 let output = in_out.as_mut_ptr(); in ctr32_encrypt_blocks_()
201 in_out: &mut [u8], in ctr32_encrypt_blocks()
210 let in_out_len = in_out.len().checked_sub(in_prefix_len).unwrap(); in ctr32_encrypt_blocks()
223 in_out, in ctr32_encrypt_blocks()
233 let in_out = if in_out_len >= 8 * BLOCK_LEN { in ctr32_encrypt_blocks() localVariable
[all …]
/external/webrtc/modules/audio_coding/codecs/isac/fix/source/
Dfilterbanks.c42 int16_t in_out = 0; in WebRtcIsacfix_AllpassFilter2FixDec16C() local
50 in_out = data_ch1[n]; in WebRtcIsacfix_AllpassFilter2FixDec16C()
51 a = factor_ch1[0] * in_out; // Q15 * Q0 = Q15 in WebRtcIsacfix_AllpassFilter2FixDec16C()
56 WebRtcSpl_AddSatW32(a * (1 << 1), (int32_t)in_out * (1 << 16)); // Q16 in WebRtcIsacfix_AllpassFilter2FixDec16C()
57 in_out = (int16_t) (b >> 16); // Save as Q0 in WebRtcIsacfix_AllpassFilter2FixDec16C()
59 a = factor_ch1[1] * in_out; // Q15 * Q0 = Q15 in WebRtcIsacfix_AllpassFilter2FixDec16C()
64 WebRtcSpl_AddSatW32(a * (1 << 1), (int32_t)in_out * (1 << 16)); // Q16 in WebRtcIsacfix_AllpassFilter2FixDec16C()
68 in_out = data_ch2[n]; in WebRtcIsacfix_AllpassFilter2FixDec16C()
69 a = factor_ch2[0] * in_out; // Q15 * Q0 = Q15 in WebRtcIsacfix_AllpassFilter2FixDec16C()
74 WebRtcSpl_AddSatW32(a * (1 << 1), (int32_t)in_out * (1 << 16)); // Q16 in WebRtcIsacfix_AllpassFilter2FixDec16C()
[all …]
/external/pffft/
Dpf_mixer.h99 float shift_addfast_inp_c(complexf *in_out, int N_cplx, shift_addfast_data_t* d, float starting_pha…
119 float shift_unroll_inp_c(complexf* in_out, int size, shift_unroll_data_t* d, float starting_phase);
147 void shift_limited_unroll_inp_c(complexf* in_out, int size, shift_limited_unroll_data_t* d);
172 void shift_limited_unroll_A_sse_inp_c(complexf* in_out, int N_cplx, shift_limited_unroll_A_sse_data…
196 void shift_limited_unroll_B_sse_inp_c(complexf* in_out, int N_cplx, shift_limited_unroll_B_sse_data…
219 void shift_limited_unroll_C_sse_inp_c(complexf* in_out, int N_cplx, shift_limited_unroll_C_sse_data…
275 void shift_recursive_osc_sse_inp_c(complexf* in_out, int N_cplx, const shift_recursive_osc_sse_conf…
Dpf_mixer.cpp286 tmp_inp_cos = iof(in_out,4*i+j); \
287 tmp_inp_sin = qof(in_out,4*i+j); \
288 iof(in_out,4*i+j)=(cos_vals_ ## j)*tmp_inp_cos - (sin_vals_ ## j)*tmp_inp_sin; \
289 qof(in_out,4*i+j)=(sin_vals_ ## j)*tmp_inp_cos + (cos_vals_ ## j)*tmp_inp_sin;
292 float shift_addfast_inp_c(complexf *in_out, int N_cplx, shift_addfast_data_t* d, float starting_pha… in shift_addfast_inp_c() argument
385 float shift_unroll_inp_c(complexf* in_out, int size, shift_unroll_data_t* d, float starting_phase) in shift_unroll_inp_c() argument
392 register float inp_i = iof(in_out,i); in shift_unroll_inp_c()
393 register float inp_q = qof(in_out,i); in shift_unroll_inp_c()
394 iof(in_out,i) = cos_val*inp_i - sin_val*inp_q; in shift_unroll_inp_c()
395 qof(in_out,i) = sin_val*inp_i + cos_val*inp_q; in shift_unroll_inp_c()
[all …]
/external/rust/crates/ring/tests/
Daead_tests.rs262 in_out: &mut Vec<u8>, in seal_with_key()
265 s_key.seal_in_place_append_tag(aad, in_out) in seal_with_key()
273 in_out: &'a mut [u8], in open_with_key()
277 o_key.open_within(aad, in_out, ciphertext_and_tag) in open_with_key()
285 in_out: &mut Vec<u8>, in seal_with_less_safe_key()
288 key.seal_in_place_append_tag(nonce, aad, in_out) in seal_with_less_safe_key()
296 in_out: &'a mut [u8], in open_with_less_safe_key()
300 key.open_within(nonce, aad, in_out, ciphertext_and_tag) in open_with_less_safe_key()
/external/rust/crates/quiche/src/
Dcrypto.rs259 let (in_out, tag_out) = buf.split_at_mut(in_out_len); in seal_with_u64_counter()
263 .seal_in_place_separate_tag(nonce, ad, in_out) in seal_with_u64_counter()
/external/libchrome/crypto/
Dp224.cc212 void Reduce(FieldElement* in_out) { in Reduce() argument
213 FieldElement& a = *in_out; in Reduce()
/external/usrsctp/usrsctplib/netinet/
Dsctp_structs.h720 uint16_t in_out; member
Dsctp_indata.c2004 asoc->in_tsnlog[asoc->tsn_in_at].in_out = 1; in sctp_process_a_data_chunk()
Dsctp_output.c8191 asoc->out_tsnlog[asoc->tsn_out_at].in_out = 2;