aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/blake2s.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-30 04:58:19 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-31 01:24:51 +0200
commit656be58314a362a3f4620fdca3c9b3a4a434e777 (patch)
treea18881fb1b779c6a27385b46d3e15126c8fe4089 /src/crypto/blake2s.c
parentwg-quick: darwin: set DNS servers after delay on route change (diff)
downloadwireguard-monolithic-historical-656be58314a362a3f4620fdca3c9b3a4a434e777.tar.xz
wireguard-monolithic-historical-656be58314a362a3f4620fdca3c9b3a4a434e777.zip
crypto: consistent constification
Diffstat (limited to 'src/crypto/blake2s.c')
-rw-r--r--src/crypto/blake2s.c6
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];