aboutsummaryrefslogtreecommitdiff
path: root/src/portable.rs
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2024-08-18 11:16:13 -0700
committerJack O'Connor <[email protected]>2024-08-18 11:32:23 -0700
commit5c4c351a1a0729f8e7a88e6895379bb952ed1a07 (patch)
treeae23751fbf5eaeaf394efd810fc578286022c722 /src/portable.rs
parent4386d7f0baae5cf77e319f12256bd7c91fedc1ef (diff)
make xof_many fall back to compress_xof instead of portable code
Diffstat (limited to 'src/portable.rs')
-rw-r--r--src/portable.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portable.rs b/src/portable.rs
index 4181f27..35b5f5d 100644
--- a/src/portable.rs
+++ b/src/portable.rs
@@ -177,6 +177,10 @@ pub fn hash_many<const N: usize>(
}
}
+// This function is test-only. When platform::xof_many() doesn't have an optimized implementation,
+// it loops over platform::compress_xof() instead of falling back to this, so it still benefits
+// from compress optimizations.
+#[cfg(test)]
pub fn xof_many(
cv: &CVWords,
block: &[u8; BLOCK_LEN],