crypto: chacha - constify ctx and iv arguments
authorEric Biggers <ebiggers@google.com>
Mon, 3 Jun 2019 05:47:14 +0000 (22:47 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Jun 2019 06:31:40 +0000 (14:31 +0800)
commit860ab2e50204c41e713c54c752617d2da57f0fd7
tree925afd2b64bb253f4963c9b6154ffb3306870824
parent76cadf2244518d3b1610082d037b01e2651ea402
crypto: chacha - constify ctx and iv arguments

Constify the ctx and iv arguments to crypto_chacha_init() and the
various chacha*_stream_xor() functions.  This makes it clear that they
are not modified.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/chacha-neon-glue.c
arch/arm64/crypto/chacha-neon-glue.c
arch/x86/crypto/chacha_glue.c
crypto/chacha_generic.c
include/crypto/chacha.h