aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit656be58314a362a3f4620fdca3c9b3a4a434e777 (patch)
treea18881fb1b779c6a27385b46d3e15126c8fe4089 /src/crypto/chacha20.h
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/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]);