• Home
  • Raw
  • Download

Lines Matching +full:d3 +full:- +full:dispatch

4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
12 use ppv_lite86::{dispatch, dispatch_light128};
43 pub(crate) fn round<V: ArithOps + BitOps32>(mut x: State<V>) -> State<V> { in round()
56 pub(crate) fn diagonalize<V: LaneWords4>(mut x: State<V>) -> State<V> { in diagonalize()
63 pub(crate) fn undiagonalize<V: LaneWords4>(mut x: State<V>) -> State<V> { in undiagonalize()
72 pub fn new(key: &[u8; 32], nonce: &[u8]) -> Self { in new()
77 fn pos64<M: Machine>(&self, m: M) -> u64 { in pos64()
94 pub fn get_block_pos(&self) -> u64 { in get_block_pos()
104 pub fn get_nonce(&self) -> u64 { in get_nonce()
109 pub fn get_seed(&self) -> [u8; 32] { in get_seed()
127 let d3 = d0.insert((pos >> 32) as u32, 1).insert(pos as u32, 0); localVariable
135 d: m.unpack(Mach::u32x4x4::from_lanes([d0, d1, d2, d3]).into()),
148 let d3 = d0.insert((pos >> 32) as u32, 1).insert(pos as u32, 0); localVariable
160 let sd = [m.unpack(state.d), d1, d2, d3];
171 dispatch!(m, Mach, {
177 // Single-block, rounds-only; shared by try_apply_keystream for tails shorter than BUFSZ
179 dispatch!(m, Mach, {
180 fn refill_narrow_rounds(state: &mut ChaCha, drounds: u32) -> State<vec128_storage> {
212 fn get_stream_param(state: &ChaCha, param: u32) -> u64 {
219 fn get_seed(state: &ChaCha) -> [u8; 32] {
229 fn read_u32le(xs: &[u8]) -> u32 { in read_u32le()
235 fn init_chacha(key: &[u8; 32], nonce: &[u8]) -> ChaCha {
243 read_u32le(&nonce[nonce.len() - 8..nonce.len() - 4]),
244 read_u32le(&nonce[nonce.len() - 4..]),
257 fn init_chacha_x(key: &[u8; 32], nonce: &[u8; 24], rounds: u32) -> ChaCha {