diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-30 04:58:19 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-31 01:24:51 +0200 |
commit | c258a6a97c4a16e280bb8bf2e2aa7b8b1ebecad8 (patch) | |
tree | 5139d78ac87badf2f500f7ab4d868a2c41936a1a /src/crypto/blake2s.h | |
parent | 046ab6962ba870c97087b23a7473af3610d19780 (diff) |
crypto: consistent constification
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/blake2s.h')
-rw-r--r-- | src/crypto/blake2s.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/blake2s.h b/src/crypto/blake2s.h index e2ab137..7c42101 100644 --- a/src/crypto/blake2s.h +++ b/src/crypto/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); -static inline void blake2s_final(struct blake2s_state *state, u8 *out, size_t outlen) +static inline void blake2s_final(struct blake2s_state *state, u8 *out, const size_t outlen) { int i; @@ -66,7 +66,7 @@ static inline void blake2s_final(struct blake2s_state *state, u8 *out, size_t ou } -static inline void blake2s(u8 *out, const u8 *in, const u8 *key, const size_t outlen, size_t inlen, const size_t keylen) +static inline void blake2s(u8 *out, const u8 *in, const u8 *key, const size_t outlen, const size_t inlen, const size_t keylen) { struct blake2s_state state; |