Messages in this thread | | | Date | Fri, 16 Nov 2018 14:16:01 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto: ecc - check for invalid values in the key verification test |
| |
On Mon, Nov 05, 2018 at 11:36:18AM +0300, Vitaly Chikunov wrote: > 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> > --- > crypto/ecc.c | 42 ++++++++++++++++++++++++++---------------- > 1 file changed, 26 insertions(+), 16 deletions(-)
Patch applied. Thanks. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |