Commit 1afc7acb authored by Stefan Berger's avatar Stefan Berger Committed by Greg Kroah-Hartman
Browse files

crypto: ecdsa - Rename keylen to bufsize where necessary



[ Upstream commit 703ca5cd ]

In cases where 'keylen' was referring to the size of the buffer used by
a curve's digits, it does not reflect the purpose of the variable anymore
once NIST P521 is used. What it refers to then is the size of the buffer,
which may be a few bytes larger than the size a coordinate of a key.
Therefore, rename keylen to bufsize where appropriate.

Tested-by: default avatarLukas Wunner <lukas@wunner.de>
Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarStefan Berger <stefanb@linux.ibm.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: 3b0565c7 ("crypto: ecdsa - Avoid signed integer overflow on signature decoding")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e7fcd5d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment