diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-30 17:20:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-30 17:20:30 +0200 |
commit | 87437d71b36518dac5086f8cc92480935e4cf60b (patch) | |
tree | 8cabd9b8871320216d371aa7c0e8774fd06d91f4 /libhashsum_init_blake_hasher.c | |
parent | m + add support for z parameter for keccak (diff) | |
download | libhashsum-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 'libhashsum_init_blake_hasher.c')
-rw-r--r-- | libhashsum_init_blake_hasher.c | 8 |
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; |