summaryrefslogtreecommitdiffstats
path: root/crypto/ecdh.c
diff options
context:
space:
mode:
authorTudor-Dan Ambarus2017-05-25 09:18:04 +0200
committerHerbert Xu2017-06-10 06:04:25 +0200
commit099054d735a5e4cfc8e90b03b7422c9b48209d8b (patch)
tree92f3c7bcf046e5f07e646b941708b58a4dd7e06f /crypto/ecdh.c
parentcrypto: kpp, (ec)dh - fix typos (diff)
downloadkernel-qcow2-linux-099054d735a5e4cfc8e90b03b7422c9b48209d8b.tar.gz
kernel-qcow2-linux-099054d735a5e4cfc8e90b03b7422c9b48209d8b.tar.xz
kernel-qcow2-linux-099054d735a5e4cfc8e90b03b7422c9b48209d8b.zip
crypto: ecc - remove unused function arguments
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecdh.c')
-rw-r--r--crypto/ecdh.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/ecdh.c b/crypto/ecdh.c
index 36233077a552..69c3951f0a03 100644
--- a/crypto/ecdh.c
+++ b/crypto/ecdh.c
@@ -81,16 +81,15 @@ static int ecdh_compute_value(struct kpp_request *req)
return -EINVAL;
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);
+ (const u8 *)ctx->private_key,
+ (const u8 *)ctx->public_key,
+ (u8 *)ctx->shared_secret);
buf = ctx->shared_secret;
} else {
ret = ecdh_make_pub_key(ctx->curve_id, ctx->ndigits,
- (const u8 *)ctx->private_key, nbytes,
- (u8 *)ctx->public_key,
- sizeof(ctx->public_key));
+ (const u8 *)ctx->private_key,
+ (u8 *)ctx->public_key);
buf = ctx->public_key;
/* Public part is a point thus it has both coordinates */
nbytes *= 2;