diff options
author | Eric Biggers <ebiggers@google.com> | 2017-02-24 15:46:58 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-03-09 18:34:27 +0800 |
commit | 60705e88974febde420a05eb39daa0d33d117903 (patch) | |
tree | 7517bdd0153afe820687b52c78afd375e18691e8 /crypto/ecdh.c | |
parent | 1e704ccb4b116eb4bac25ad5c4fb656ce28c5be0 (diff) | |
download | linux-crypto-60705e88974febde420a05eb39daa0d33d117903.tar.gz linux-crypto-60705e88974febde420a05eb39daa0d33d117903.zip |
crypto: kpp - constify buffer passed to crypto_kpp_set_secret()
Constify the buffer passed to crypto_kpp_set_secret() and
kpp_alg.set_secret, since it is never modified.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/ecdh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ecdh.c b/crypto/ecdh.c index 3de28980..63ca3377 100644 --- a/crypto/ecdh.c +++ b/crypto/ecdh.c @@ -38,7 +38,8 @@ static unsigned int ecdh_supported_curve(unsigned int curve_id) } } -static int ecdh_set_secret(struct crypto_kpp *tfm, void *buf, unsigned int len) +static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, + unsigned int len) { struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); struct ecdh params; |