boringssl/crypto/ec
David Benjamin bc6a76b0e0 Align BN_rand_range_ex with FIPS 186-4.
Rather than comparing against both min and max, FIPS prefers comparing
with max - min and adding min. It also does not believe in using
3*range. Align with it, though our old algorithm trivially produces the
same probability distribution on values.

Change-Id: I447cc3608b92ba93706489d702b8d6a68047f491
Reviewed-on: https://boringssl-review.googlesource.com/15045
Reviewed-by: Adam Langley <agl@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-04-14 19:49:49 +00:00
..
asm Remove trailing whitespace from Perl files. 2017-02-14 00:13:55 +00:00
CMakeLists.txt Convert ec_test to GTest. 2017-02-16 23:33:48 +00:00
ec_asn1.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ec_key.c Align BN_rand_range_ex with FIPS 186-4. 2017-04-14 19:49:49 +00:00
ec_montgomery.c Don't use BN_mod_inverse for inverses mod p in RSA keygen. 2017-01-04 13:56:11 +00:00
ec_test.cc Add PWCT for RSA and ECDSA for FIPS 140-2. 2017-04-13 17:00:43 +00:00
ec.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
example_mul.c Remove some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
internal.h Don't use function wrappers for EC_METHOD. 2016-08-16 19:27:52 +00:00
oct.c Fix error code for unreduced x. 2016-11-29 00:55:04 +00:00
p224-64.c Simplify ec_GFp_nistp224_points_mul logic. 2017-01-05 23:32:59 +00:00
p256-64.c Simplify ec_GFp_nistp256_points_mul logic. 2017-01-05 23:23:46 +00:00
p256-x86_64_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p256-x86_64_tests.txt ec/ecp_nistz256: harmonize is_infinity with ec_GFp_simple_is_at_infinity. 2016-11-16 18:16:54 +00:00
p256-x86_64-table.h
p256-x86_64.c Save one call to |ecp_nistz256_from_mont| in |ecp_nistz256_get_affine|. 2017-01-12 21:10:17 +00:00
p256-x86_64.h Remove specialized assembly language |ecp_nistz256_from_mont|. 2017-01-13 17:27:13 +00:00
simple.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
util-64.c Remove unused code for multiple-point ECC multiplication. 2016-03-09 19:47:19 +00:00
wnaf.c Remove 'pivot element' from wNAF code. 2017-01-12 16:45:23 +00:00