aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/chacha20.h
diff options
context:
space:
mode:
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]);