aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_blakeb_hasher.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhashsum_init_blakeb_hasher.c')
-rw-r--r--libhashsum_init_blakeb_hasher.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libhashsum_init_blakeb_hasher.c b/libhashsum_init_blakeb_hasher.c
index 417553b..42cdb16 100644
--- a/libhashsum_init_blakeb_hasher.c
+++ b/libhashsum_init_blakeb_hasher.c
@@ -4,12 +4,12 @@
int
-libhashsum_init_blakeb_hasher(struct libhashsum_hasher *this, size_t hashbits)
+libhashsum_init_blakeb_hasher(struct libhashsum_hasher *this, size_t hashbits, const void *salt)
{
if (hashbits == 384U)
- return libhashsum_init_blake384_hasher(this);
+ return libhashsum_init_blake384_hasher(this, salt);
if (hashbits == 512U)
- return libhashsum_init_blake512_hasher(this);
+ return libhashsum_init_blake512_hasher(this, salt);
errno = EINVAL;
return -1;
@@ -18,10 +18,11 @@ libhashsum_init_blakeb_hasher(struct libhashsum_hasher *this, size_t hashbits)
#else
int
-libhashsum_init_blakeb_hasher(struct libhashsum_hasher *this, size_t hashbits)
+libhashsum_init_blakeb_hasher(struct libhashsum_hasher *this, size_t hashbits, const void *salt)
{
(void) this;
(void) hashbits;
+ (void) salt;
errno = ENOSYS;
return -1;
}