aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-28 16:41:28 +0200
committerMattias Andrée <maandree@kth.se>2024-08-28 16:41:28 +0200
commit9a0a1b696a47041985ce4d3969ba5d1261105ff0 (patch)
tree1f07a2cd0b101668d174329bad6f630c44261602 /common.h
parentm misc (diff)
downloadlibhashsum-9a0a1b696a47041985ce4d3969ba5d1261105ff0.tar.gz
libhashsum-9a0a1b696a47041985ce4d3969ba5d1261105ff0.tar.bz2
libhashsum-9a0a1b696a47041985ce4d3969ba5d1261105ff0.tar.xz
m + add support for z parameter for keccak
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.h b/common.h
index 7ff0f9c..642f6bc 100644
--- a/common.h
+++ b/common.h
@@ -44,10 +44,10 @@ __attribute__((__const__))
uint8_t libhashsum_reverse_byte__(uint8_t);
#ifdef LIBHASHSUM_INCLUDE_LIBKECCAK_STATE
-int libhashsum_init_keccak__(struct libhashsum_hasher *this, size_t hashbits, void *spec, const char *suffix);
+int libhashsum_init_keccak__(struct libhashsum_hasher *this, size_t hashbits, void *spec, size_t squeezes, const char *suffix);
#endif
-#define KECCAKN(N) 1600 - 2 * (N), 2 * (N), (N)
+#define KECCAKN(N) 1600 - 2 * (N), 2 * (N), (N), 1
#ifdef TEST