mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
crypto: ecc - remove unused function arguments
Signed-off-by: Tudor Ambarus <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
c0ca1215dc
commit
099054d735
3 changed files with 11 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue