diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-27 18:08:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-27 18:08:19 +0100 |
commit | 2aecdd106f20816cee7e85902d7c517606b1e563 (patch) | |
tree | e423a407a56b87a8e75e0bf7c8884bff74953d54 /src/crypto/include/zinc | |
parent | dbd56ac3969f3d100e945fc27599cf8ccdd098e9 (diff) |
blake2s: remove outlen parameter from final
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/include/zinc')
-rw-r--r-- | src/crypto/include/zinc/blake2s.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/include/zinc/blake2s.h b/src/crypto/include/zinc/blake2s.h index 8035cee..2ca0bc3 100644 --- a/src/crypto/include/zinc/blake2s.h +++ b/src/crypto/include/zinc/blake2s.h @@ -29,7 +29,7 @@ void blake2s_init(struct blake2s_state *state, const size_t outlen); void blake2s_init_key(struct blake2s_state *state, const size_t outlen, const void *key, const size_t keylen); void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen); -void blake2s_final(struct blake2s_state *state, u8 *out, const size_t outlen); +void blake2s_final(struct blake2s_state *state, u8 *out); static inline void blake2s(u8 *out, const u8 *in, const u8 *key, const size_t outlen, const size_t inlen, @@ -47,7 +47,7 @@ static inline void blake2s(u8 *out, const u8 *in, const u8 *key, blake2s_init(&state, outlen); blake2s_update(&state, in, inlen); - blake2s_final(&state, out, outlen); + blake2s_final(&state, out); } void blake2s_hmac(u8 *out, const u8 *in, const u8 *key, const size_t outlen, |