boringssl/crypto/ec
Brian Smith 6603b76f76 Remove reduction in |ec_GFp_simple_set_Jprojective_coordinates_GFp|.
The (internal) constant-time callers of this function already do a
constant-time reduction before calling. And, nobody should be calling
this function with out-of-range coordinates anyway. So, just require
valid coordinates as input.

Further, this function is rarely called, so don't bother with the
optimization to avoid encoding Montgomery encoding of 1 for the Z
coordinate.

Change-Id: I637ffaf4d39135ca17214915b9a8582ea052eea8
Reviewed-on: https://boringssl-review.googlesource.com/7441
Reviewed-by: David Benjamin <davidben@google.com>
2016-03-11 19:20:43 +00:00
..
asm ec/asm/p256-x86_64-asm.pl: get corner case logic right. 2016-03-01 18:06:46 +00:00
CMakeLists.txt
ec_asn1.c Fix a few more missing CBB_cleanups. 2016-03-08 21:08:48 +00:00
ec_key.c Adding missing BN_CTX_start/BN_CTX_end in ec_key 2016-03-01 18:04:46 +00:00
ec_montgomery.c Remove |EC_POINT::Z_is_one|. 2016-03-09 18:58:43 +00:00
ec_test.cc Add test that A+A = 2×A on elliptic curves. 2016-03-01 18:08:51 +00:00
ec.c Tweaks for node.js 2016-01-26 23:23:42 +00:00
example_mul.c
internal.h Remove unused code for multiple-point ECC multiplication. 2016-03-09 19:47:19 +00:00
oct.c Require compressed x EC coordinate to be a field element. 2016-03-11 19:13:20 +00:00
p224-64.c Remove unused code for multiple-point ECC multiplication. 2016-03-09 19:47:19 +00:00
p256-64.c Remove unused code for multiple-point ECC multiplication. 2016-03-09 19:47:19 +00:00
p256-x86_64-table.h Use |alignas| for alignment. 2016-01-25 23:05:04 +00:00
p256-x86_64.c Avoid potential uninitialized memory read in crypto/ec/p256-x86_64.c. 2016-03-09 19:04:36 +00:00
simple.c Remove reduction in |ec_GFp_simple_set_Jprojective_coordinates_GFp|. 2016-03-11 19:20:43 +00:00
util-64.c Remove unused code for multiple-point ECC multiplication. 2016-03-09 19:47:19 +00:00
wnaf.c Remove |EC_POINTs_mul| & simplify p256-x86_64. 2015-11-19 01:08:46 +00:00