summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/chacha20.h
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
commitc258a6a97c4a16e280bb8bf2e2aa7b8b1ebecad8 (patch)
tree5139d78ac87badf2f500f7ab4d868a2c41936a1a /src/crypto/chacha20.h
parent046ab6962ba870c97087b23a7473af3610d19780 (diff)
crypto: consistent constification
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/chacha20.h')
-rw-r--r--src/crypto/chacha20.h2
1 files changed, 1 insertions, 1 deletions
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]);