diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2016-06-24 16:20:22 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-06-24 21:24:59 +0800 |
commit | b167e901df55dd491a55c73fd9971f03a54765e3 (patch) | |
tree | 2269d73ae9b7aa1d8fde912aa912f61e2576d762 /crypto/ecdh.c | |
parent | 08185c512dc88d33b18afb11c590210658f72dbb (diff) | |
download | linux-crypto-b167e901df55dd491a55c73fd9971f03a54765e3.tar.gz linux-crypto-b167e901df55dd491a55c73fd9971f03a54765e3.zip |
crypto: ecdh - make ecdh_shared_secret unique
There is another ecdh_shared_secret in net/bluetooth/ecc.c
Fixes: e8c7f3061131 ("crypto: ecdh - Add ECDH software support")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecdh.c')
-rw-r--r-- | crypto/ecdh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecdh.c b/crypto/ecdh.c index d3a9eeca..3de28980 100644 --- a/crypto/ecdh.c +++ b/crypto/ecdh.c @@ -79,7 +79,7 @@ static int ecdh_compute_value(struct kpp_request *req) if (copied != 2 * nbytes) return -EINVAL; - ret = ecdh_shared_secret(ctx->curve_id, ctx->ndigits, + ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, (const u8 *)ctx->private_key, nbytes, (const u8 *)ctx->public_key, 2 * nbytes, (u8 *)ctx->shared_secret, nbytes); |