aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorVitaly Chikunov <[email protected]>2018-11-05 11:36:18 +0300
committerHerbert Xu <[email protected]>2018-11-16 14:09:39 +0800
commit2eb4942b6609d35a4e835644a33203b0aef7443d (patch)
treef591a91748069d4db65aadc43858ba3651478647 /lib/test_overflow.c
parent196ad6043e9fe93c4ae3dac02b5c8fd337f58c2d (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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions