aboutsummaryrefslogtreecommitdiff
path: root/c/blake3_dispatch.c
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 /c/blake3_dispatch.c
parent4386d7f0baae5cf77e319f12256bd7c91fedc1ef (diff)
make xof_many fall back to compress_xof instead of portable code
Diffstat (limited to 'c/blake3_dispatch.c')
-rw-r--r--c/blake3_dispatch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/blake3_dispatch.c b/c/blake3_dispatch.c
index cf5bad7..5c76b14 100644
--- a/c/blake3_dispatch.c
+++ b/c/blake3_dispatch.c
@@ -241,7 +241,9 @@ void blake3_xof_many(const uint32_t cv[8],
}
#endif
#endif
- blake3_xof_many_portable(cv, block, block_len, counter, flags, out, outblocks);
+ for(size_t i = 0; i < outblocks; ++i) {
+ blake3_compress_xof(cv, block, block_len, counter + i, flags, out + 64*i);
+ }
}
void blake3_hash_many(const uint8_t *const *inputs, size_t num_inputs,