aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_blake_hasher.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-30 17:20:30 +0200
committerMattias Andrée <maandree@kth.se>2024-08-30 17:20:30 +0200
commit87437d71b36518dac5086f8cc92480935e4cf60b (patch)
tree8cabd9b8871320216d371aa7c0e8774fd06d91f4 /libhashsum_init_blake_hasher.c
parentm + add support for z parameter for keccak (diff)
downloadlibhashsum-87437d71b36518dac5086f8cc92480935e4cf60b.tar.gz
libhashsum-87437d71b36518dac5086f8cc92480935e4cf60b.tar.bz2
libhashsum-87437d71b36518dac5086f8cc92480935e4cf60b.tar.xz
m + add man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libhashsum_init_blake_hasher.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhashsum_init_blake_hasher.c b/libhashsum_init_blake_hasher.c
index 7b6d78e..2fc5ae4 100644
--- a/libhashsum_init_blake_hasher.c
+++ b/libhashsum_init_blake_hasher.c
@@ -4,14 +4,14 @@
int
-libhashsum_init_blake_hasher(struct libhashsum_hasher *this, size_t hashbits, const void *salt, size_t salybytes)
+libhashsum_init_blake_hasher(struct libhashsum_hasher *this, size_t hashbits, const void *salt, size_t saltbytes)
{
if (salt) {
if (hashbits == 224U || hashbits == 256U) {
- if (salybytes != 16U)
+ if (saltbytes != 16U)
goto einval;
} else if (hashbits == 384U || hashbits == 512U) {
- if (salybytes != 32U)
+ if (saltbytes != 32U)
goto einval;
}
}
@@ -33,7 +33,7 @@ einval:
#else
int
-libhashsum_init_blake_hasher(struct libhashsum_hasher *this, size_t hashbits, const void *salt, size_t salybytes)
+libhashsum_init_blake_hasher(struct libhashsum_hasher *this, size_t hashbits, const void *salt, size_t saltbytes)
{
(void) this;
(void) hashbits;