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.c | |
parent | 046ab6962ba870c97087b23a7473af3610d19780 (diff) |
crypto: consistent constification
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/blake2s.c')
-rw-r--r-- | src/crypto/blake2s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/blake2s.c b/src/crypto/blake2s.c index e945992..322a682 100644 --- a/src/crypto/blake2s.c +++ b/src/crypto/blake2s.c @@ -120,16 +120,16 @@ void __init blake2s_fpu_init(void) #endif } #ifdef CONFIG_AS_AVX -asmlinkage void blake2s_compress_avx(struct blake2s_state *state, const u8 *block, size_t nblocks, u32 inc); +asmlinkage void blake2s_compress_avx(struct blake2s_state *state, const u8 *block, const size_t nblocks, const u32 inc); #endif #ifdef CONFIG_AS_AVX512 -asmlinkage void blake2s_compress_avx512(struct blake2s_state *state, const u8 *block, size_t nblocks, u32 inc); +asmlinkage void blake2s_compress_avx512(struct blake2s_state *state, const u8 *block, const size_t nblocks, const u32 inc); #endif #else void __init blake2s_fpu_init(void) { } #endif -static inline void blake2s_compress(struct blake2s_state *state, const u8 *block, size_t nblocks, u32 inc) +static inline void blake2s_compress(struct blake2s_state *state, const u8 *block, size_t nblocks, const u32 inc) { u32 m[16]; u32 v[16]; |