commit | 2eb4942b6609d35a4e835644a33203b0aef7443d | [log] [tgz] |
---|---|---|
author | Vitaly Chikunov <vt@altlinux.org> | Mon Nov 05 11:36:18 2018 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Nov 16 14:09:39 2018 +0800 |
tree | f591a91748069d4db65aadc43858ba3651478647 | |
parent | 196ad6043e9fe93c4ae3dac02b5c8fd337f58c2d [diff] |
crypto: ecc - check for invalid values in the key verification test 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>