From 094bdf46112d7c05854f80d96665d8e46d266a23 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:18:47 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- DEPENDENCIES | 4 ---- digest.c | 6 +++--- libkeccak.h | 6 +++--- test.c | 4 ++-- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index 8d80636..3d3c5ec 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -2,7 +2,6 @@ RUNTIME DEPENDENCIES: libc - BUILD DEPENDENCIES: libc @@ -11,14 +10,12 @@ BUILD DEPENDENCIES: coreutils binutils - CHECK DEPENDENCIES: libc make coreutils - BENCHMARK DEPENDENCIES: libc @@ -28,7 +25,6 @@ BENCHMARK DEPENDENCIES: grep (only needed for ./benchmark-flags) sed (only needed for ./benchmark-flags) - INSTALL DEPENDENCIES: make diff --git a/digest.c b/digest.c index a196cee..c7b2571 100644 --- a/digest.c +++ b/digest.c @@ -217,7 +217,7 @@ libkeccak_squeezing_phase(register struct libkeccak_state *restrict state, long * Absorb more of the message to the Keccak sponge * without copying the data to an internal buffer * - * It is safe run zero-copy functions before non-zero-copy + * It is safe to run zero-copy functions before non-zero-copy * functions for the same state, running zero-copy functions * after non-zero-copy functions on the other hand can * cause the message to be misread @@ -317,7 +317,7 @@ libkeccak_update(struct libkeccak_state *restrict state, const void *restrict ms * Absorb the last part of the message and squeeze the Keccak sponge * without copying the data to an internal buffer * - * It is safe run zero-copy functions before non-zero-copy + * It is safe to run zero-copy functions before non-zero-copy * functions for the same state, running zero-copy functions * after non-zero-copy functions on the other hand can * cause the message to be misread @@ -325,7 +325,7 @@ libkeccak_update(struct libkeccak_state *restrict state, const void *restrict ms * @param state The hashing state * @param msg_ The rest of the message; will be edited; extra memory * shall be allocated such that `suffix` and a 10*1 pad (which - * is at least 2 bits long) can be added in a why the makes it's + * is at least 2 bits long) can be added in a way that makes its * length a multiple of `libkeccak_zerocopy_chunksize(state)` * @param msglen The length of the partial message * @param bits The number of bits at the end of the message not covered by `msglen` diff --git a/libkeccak.h b/libkeccak.h index 4d8507c..c1bc177 100644 --- a/libkeccak.h +++ b/libkeccak.h @@ -155,7 +155,7 @@ libkeccak_zerocopy_chunksize(struct libkeccak_state *state) * Absorb more of the message to the Keccak sponge * without copying the data to an internal buffer * - * It is safe run zero-copy functions before non-zero-copy + * It is safe to run zero-copy functions before non-zero-copy * functions for the same state, running zero-copy functions * after non-zero-copy functions on the other hand can * cause the message to be misread @@ -197,7 +197,7 @@ int libkeccak_update(struct libkeccak_state *restrict, const void *restrict, siz * Absorb the last part of the message and squeeze the Keccak sponge * without copying the data to an internal buffer * - * It is safe run zero-copy functions before non-zero-copy + * It is safe to run zero-copy functions before non-zero-copy * functions for the same state, running zero-copy functions * after non-zero-copy functions on the other hand can * cause the message to be misread @@ -205,7 +205,7 @@ int libkeccak_update(struct libkeccak_state *restrict, const void *restrict, siz * @param state The hashing state * @param msg The rest of the message; will be edited; extra memory * shall be allocated such that `suffix` and a 10*1 pad (which - * is at least 2 bits long) can be added in a why the makes it's + * is at least 2 bits long) can be added in a way that makes its * length a multiple of `libkeccak_zerocopy_chunksize(state)` * @param msglen The length of the partial message * @param bits The number of bits at the end of the message not covered by `msglen` diff --git a/test.c b/test.c index a564395..9851645 100644 --- a/test.c +++ b/test.c @@ -1070,8 +1070,8 @@ test_update(void) * @param fast_squeezes The number of fast squeezes to perform * @param squeezes The number of extra squeezes to perform in total * @param fast_digest Whether `libkeccak_digest` should do a fast squeeze rather than a slow squeeze - * @param hashsum A buffer in which we can used to store the binary hashsum - * @param hexsum A buffer in which we can used to store the hexadecimal hashsum + * @param hashsum A buffer in which we can use to store the binary hashsum + * @param hexsum A buffer in which we can use to store the hexadecimal hashsum * @param expected_answer The hashum we expect, must be in lowercase hexadecimal * @return Zero on success, -1 on error */ -- cgit v1.2.3-70-g09d2