aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ffi_neon.rs26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/ffi_neon.rs b/src/ffi_neon.rs
index 54d07a4..0b443c9 100644
--- a/src/ffi_neon.rs
+++ b/src/ffi_neon.rs
@@ -15,18 +15,20 @@ pub unsafe fn hash_many<const N: usize>(
// array, but the C implementations don't. Even though this is an unsafe
// function, assert the bounds here.
assert!(out.len() >= inputs.len() * OUT_LEN);
- ffi::blake3_hash_many_neon(
- inputs.as_ptr() as *const *const u8,
- inputs.len(),
- N / BLOCK_LEN,
- key.as_ptr(),
- counter,
- increment_counter.yes(),
- flags,
- flags_start,
- flags_end,
- out.as_mut_ptr(),
- )
+ unsafe {
+ ffi::blake3_hash_many_neon(
+ inputs.as_ptr() as *const *const u8,
+ inputs.len(),
+ N / BLOCK_LEN,
+ key.as_ptr(),
+ counter,
+ increment_counter.yes(),
+ flags,
+ flags_start,
+ flags_end,
+ out.as_mut_ptr(),
+ )
+ }
}
// blake3_neon.c normally depends on blake3_portable.c, because the NEON