boringssl/crypto/ec
Brian Smith 301efc8cea Fix error handling in |p256-x86_64|.
This makes similar fixes as were done in the following OpenSSL commits:

    c028254b12a8ea0d0f8a677172eda2e2d78073f3: Correctly set Z_is_one on
    the return value in the NISTZ256 implementation.

    e22d2199e2a5cc9b243f45c2b633d1e31fadecd7: Error checking and memory
    leak leak fixes in NISTZ256.

    4446044a793a9103a4bc70c0214005e6a4463767: NISTZ256: set Z_is_one to
    boolean 0/1 as is customary.

    a4d5269e6d0dba0c276c968448a3576f7604666a: NISTZ256: don't swallow
    malloc errors.

The fixes aren't exactly the same. In particular, the comments "This is
an unusual input, we don't guarantee constant-timeness" and the changes
to |ecp_nistz256_mult_precompute| (which isn't in BoringSSL) were
omitted.

Change-Id: Ia7bb982daa62fb328e8bd2d4dd49a8857e104096
Reviewed-on: https://boringssl-review.googlesource.com/6492
Reviewed-by: Adam Langley <agl@google.com>
2015-11-19 00:52:33 +00:00
..
asm Add Intel's P-256 2015-11-03 22:08:47 +00:00
CMakeLists.txt Add Intel's P-256 2015-11-03 22:08:47 +00:00
ec_asn1.c Fix all sign/unsigned warnings with Clang and GCC. 2015-10-27 22:48:00 +00:00
ec_key.c Remove |EC_GROUP_precompute_mult| and |EC_KEY_precompute_mult|. 2015-11-19 00:35:59 +00:00
ec_montgomery.c Make |EC_GROUP_precompute_mult|/|EC_KEY_precompute_mult| no-ops. 2015-11-19 00:27:39 +00:00
ec_test.cc Remove stl_compat.h. 2015-11-11 22:19:36 +00:00
ec.c Remove |EC_GROUP_precompute_mult| and |EC_KEY_precompute_mult|. 2015-11-19 00:35:59 +00:00
example_mul.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
internal.h Make |EC_GROUP_precompute_mult|/|EC_KEY_precompute_mult| no-ops. 2015-11-19 00:27:39 +00:00
oct.c Don't encode or decode ∞. 2015-11-12 23:52:37 +00:00
p224-64.c Make |EC_GROUP_precompute_mult|/|EC_KEY_precompute_mult| no-ops. 2015-11-19 00:27:39 +00:00
p256-64.c Make |EC_GROUP_precompute_mult|/|EC_KEY_precompute_mult| no-ops. 2015-11-19 00:27:39 +00:00
p256-x86_64-table.h Add Intel's P-256 2015-11-03 22:08:47 +00:00
p256-x86_64.c Fix error handling in |p256-x86_64|. 2015-11-19 00:52:33 +00:00
simple.c Remove EC_GFp_simple_method (dead code). 2015-11-12 20:07:51 +00:00
util-64.c Add 64-bit, P-256 implementation. 2015-04-16 13:53:05 -07:00
wnaf.c Make |EC_GROUP_precompute_mult|/|EC_KEY_precompute_mult| no-ops. 2015-11-19 00:27:39 +00:00