diff options
author | Matt Caswell <matt@openssl.org> | 2018-05-29 14:55:45 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-05-31 10:38:51 +0100 |
commit | 1b3c89cd1e579aa8b9229498699ce54fa7986fa7 (patch) | |
tree | a05babc4dd3fa3c54ddc0ed750dfa71c5c8bbcf0 /crypto/ec/curve448 | |
parent | 5be77b074c17a506f222a28f13a0b64bbef9da7a (diff) |
Remove some logically dead code
Found by coverity. This is an artifact left over from the original
decaf import which generated the source code for different curves. For
curve 448 this is dead.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6373)
Diffstat (limited to 'crypto/ec/curve448')
-rw-r--r-- | crypto/ec/curve448/eddsa.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/ec/curve448/eddsa.c b/crypto/ec/curve448/eddsa.c index d31887638c..85565a8dfb 100644 --- a/crypto/ec/curve448/eddsa.c +++ b/crypto/ec/curve448/eddsa.c @@ -253,7 +253,6 @@ c448_error_t c448_ed448_verify( curve448_point_decode_like_eddsa_and_mul_by_ratio(pk_point, pubkey); curve448_scalar_t challenge_scalar; curve448_scalar_t response_scalar; - unsigned int c; if (C448_SUCCESS != error) return error; @@ -291,9 +290,6 @@ c448_error_t c448_ed448_verify( &signature[EDDSA_448_PUBLIC_BYTES], EDDSA_448_PRIVATE_BYTES); - for (c = 1; c < C448_EDDSA_DECODE_RATIO; c <<= 1) - curve448_scalar_add(response_scalar, response_scalar, response_scalar); - /* pk_point = -c(x(P)) + (cx + k)G = kG */ curve448_base_double_scalarmul_non_secret(pk_point, response_scalar, |