From c258a6a97c4a16e280bb8bf2e2aa7b8b1ebecad8 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 30 May 2018 04:58:19 +0200 Subject: crypto: consistent constification Signed-off-by: Jason A. Donenfeld --- src/crypto/chacha20.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crypto/chacha20.h') diff --git a/src/crypto/chacha20.h b/src/crypto/chacha20.h index e3b6b69..10f35ab 100644 --- a/src/crypto/chacha20.h +++ b/src/crypto/chacha20.h @@ -23,7 +23,7 @@ struct chacha20_ctx { void chacha20_fpu_init(void); -static inline void chacha20_init(struct chacha20_ctx *state, const u8 key[CHACHA20_KEY_SIZE], u64 nonce) +static inline void chacha20_init(struct chacha20_ctx *state, const u8 key[CHACHA20_KEY_SIZE], const u64 nonce) { __le32 *le_key = (__le32 *)key; state->key[0] = le32_to_cpu(le_key[0]); -- cgit v1.2.3