boringssl/crypto/ec
Brian Smith f01fb5dc0e Avoid minor waste in |ec_GFp_nistp256_point_get_affine_coordinates|.
Avoid calculating the affine Y coordinate when the caller didn't ask
for it, as occurs, for example, in ECDH.

For symmetry and clarity, avoid calculating the affine X coordinate in
the hypothetical case where the caller only asked for the Y coordinate.

Change-Id: I69f5993fa0dfac8b010c38e695b136cefc277fed
Reviewed-on: https://boringssl-review.googlesource.com/7590
Reviewed-by: David Benjamin <davidben@google.com>
2016-04-20 23:00:27 +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 Add Intel's P-256 2015-11-03 22:08:47 +00:00
ec_asn1.c Decouple crypto/ec from the OID table. 2016-03-31 22:12:09 +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 Use only Montgomery math in |ec_GFp_mont_point_get_affine_coordinates|. 2016-04-20 22:51:34 +00:00
ec_test.cc Make local functions static. 2016-03-20 16:37:58 +00:00
ec.c Decouple crypto/ec from the OID table. 2016-03-31 22:12:09 +00:00
example_mul.c Remove some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
internal.h Decouple crypto/ec from the OID table. 2016-03-31 22:12:09 +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 some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
p256-64.c Avoid minor waste in |ec_GFp_nistp256_point_get_affine_coordinates|. 2016-04-20 23:00:27 +00:00
p256-x86_64-table.h Use |alignas| for alignment. 2016-01-25 23:05:04 +00:00
p256-x86_64.c Save one call to |ecp_nistz256_from_mont| in |ecp_nistz256_get_affine|. 2016-04-20 22:58:36 +00:00
simple.c Move & rename |ec_GFp_simple_point_get_affine_coordinates|. 2016-03-28 17:21:32 +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