]> git.ipfire.org Git - people/arne_f/kernel.git/commit
crypto: ecc - check for invalid values in the key verification test
authorVitaly Chikunov <vt@altlinux.org>
Mon, 5 Nov 2018 08:36:18 +0000 (11:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:37:54 +0000 (20:37 +0100)
commit7291f13968761680615ab613f0832433b1123510
tree310dfad313187c46414b546a0ab4a46bf07ce989
parente3c914631c0e2130b8a84f326be2a4eda0ba834c
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: Vitaly Chikunov <vt@altlinux.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/ecc.c