diff options
author | nectar <nectar@FreeBSD.org> | 2003-10-01 12:32:41 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-10-01 12:32:41 +0000 |
commit | d8e0ea4b4099a4a515737f88ac4a721aa18de408 (patch) | |
tree | d15d9b82d7e9e084b77588523bf3c458209272ab /crypto/openssl/crypto/ec/ec_mult.c | |
parent | 33988c2cf4782199183774795f0b9a5fab74bd66 (diff) | |
parent | ee25ce74b3f6742c1079590363995e56ff51b014 (diff) | |
download | FreeBSD-src-d8e0ea4b4099a4a515737f88ac4a721aa18de408.zip FreeBSD-src-d8e0ea4b4099a4a515737f88ac4a721aa18de408.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r120631,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/openssl/crypto/ec/ec_mult.c')
-rw-r--r-- | crypto/openssl/crypto/ec/ec_mult.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/crypto/openssl/crypto/ec/ec_mult.c b/crypto/openssl/crypto/ec/ec_mult.c index 4dbc931..16822a7 100644 --- a/crypto/openssl/crypto/ec/ec_mult.c +++ b/crypto/openssl/crypto/ec/ec_mult.c @@ -175,12 +175,13 @@ static signed char *compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len, B * (thus the boundaries should be increased) */ #define EC_window_bits_for_scalar_size(b) \ - ((b) >= 2000 ? 6 : \ - (b) >= 800 ? 5 : \ - (b) >= 300 ? 4 : \ - (b) >= 70 ? 3 : \ - (b) >= 20 ? 2 : \ - 1) + ((size_t) \ + ((b) >= 2000 ? 6 : \ + (b) >= 800 ? 5 : \ + (b) >= 300 ? 4 : \ + (b) >= 70 ? 3 : \ + (b) >= 20 ? 2 : \ + 1)) /* Compute * \sum scalars[i]*points[i], |