aboutsummaryrefslogtreecommitdiff
path: root/src/portable.rs
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2019-12-07 21:55:13 -0500
committerJack O'Connor <[email protected]>2019-12-07 21:55:13 -0500
commitc7a1f6e919db71f384969685897e86f056550824 (patch)
treeec2e05f5b86786a4819d2b0ee9e177e174d653f1 /src/portable.rs
parentd6fbb03d018ace9de2cfb6380afe7923ba7af186 (diff)
add the OffsetDeltas type alias
I'm about to add C integration for AVX-512 and NEON, and this matches better what the C code is doing.
Diffstat (limited to 'src/portable.rs')
-rw-r--r--src/portable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable.rs b/src/portable.rs
index aefc5bf..8c18408 100644
--- a/src/portable.rs
+++ b/src/portable.rs
@@ -1,4 +1,4 @@
-use crate::{offset_high, offset_low, BLOCK_LEN, IV, KEY_LEN, MSG_SCHEDULE, OUT_LEN};
+use crate::{offset_high, offset_low, OffsetDeltas, BLOCK_LEN, IV, KEY_LEN, MSG_SCHEDULE, OUT_LEN};
use arrayref::{array_mut_ref, array_ref};
#[inline(always)]
@@ -156,7 +156,7 @@ pub fn hash_many<A: arrayvec::Array<Item = u8>>(
inputs: &[&A],
key: &[u8; KEY_LEN],
mut offset: u64,
- offset_deltas: &[u64; 16],
+ offset_deltas: &OffsetDeltas,
flags: u8,
flags_start: u8,
flags_end: u8,