summaryrefslogtreecommitdiff
path: root/crypto/ecc.c
diff options
context:
space:
mode:
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>2017-05-25 10:18:04 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-10 12:04:25 +0800
commit5ed65cf80b8c07cd082a8cf09a5468b301d10b2a (patch)
tree719b3c6928836b8c1f5f5f390730d26e2885d66a /crypto/ecc.c
parent0c2d2340e2013e64a1596ab16add8773b7cd89cb (diff)
downloadlinux-crypto-5ed65cf80b8c07cd082a8cf09a5468b301d10b2a.tar.gz
linux-crypto-5ed65cf80b8c07cd082a8cf09a5468b301d10b2a.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/ecc.c')
-rw-r--r--crypto/ecc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/crypto/ecc.c b/crypto/ecc.c
index 414c78a9..69b4cc43 100644
--- a/crypto/ecc.c
+++ b/crypto/ecc.c
@@ -928,8 +928,7 @@ int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
}
int ecdh_make_pub_key(unsigned int curve_id, unsigned int ndigits,
- const u8 *private_key, unsigned int private_key_len,
- u8 *public_key, unsigned int public_key_len)
+ const u8 *private_key, u8 *public_key)
{
int ret = 0;
struct ecc_point *pk;
@@ -967,9 +966,8 @@ out:
}
int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
- const u8 *private_key, unsigned int private_key_len,
- const u8 *public_key, unsigned int public_key_len,
- u8 *secret, unsigned int secret_len)
+ const u8 *private_key, const u8 *public_key,
+ u8 *secret)
{
int ret = 0;
struct ecc_point *product, *pk;