Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2b797bb authored by Vitaly Chikunov's avatar Vitaly Chikunov Committed by Greg Kroah-Hartman
Browse files

crypto: ecc - check for invalid values in the key verification test



[ Upstream commit 2eb4942b6609d35a4e835644a33203b0aef7443d ]

Currently used scalar multiplication algorithm (Matthieu Rivain, 2011)
have invalid values for scalar == 1, n-1, and for regularized version
n-2, which was previously not checked. Verify that they are not used as
private keys.

Signed-off-by: default avatarVitaly Chikunov <vt@altlinux.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f38b78cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment