boringssl/crypto/ec
David Benjamin 666973b8e9 Add tests for EC keys with specified curves.
In c0d9484902, we had to add support for
recognizing specified versions of named curves. I believe the motivation
was an ECPrivateKey encoded by OpenSSL without the EC_KEY's asn1_flag
set to OPENSSL_EC_NAMED_CURVE. Annoyingly, it appears OpenSSL's API
defaulted to the specified form while the tool defaulted to the named
form.

Add tests for this at the ECPrivateKey and the PKCS#8 level. The latter
was taken from Chromium's ec_private_key_unittest.cc which was the
original impetus for this.

Change-Id: I53a80c842c3fc9598f2e0ee7bf2d86b2add9e6c4
Reviewed-on: https://boringssl-review.googlesource.com/7072
Reviewed-by: Adam Langley <agl@google.com>
2016-02-16 21:51:32 +00:00
..
asm Remove dead code in p256-x86_64. 2015-11-20 23:45:43 +00:00
CMakeLists.txt Add Intel's P-256 2015-11-03 22:08:47 +00:00
ec_asn1.c Enforce that |EC_KEY| private key is in [0, group->order). 2015-12-15 18:45:03 +00:00
ec_key.c Don't cast |OPENSSL_malloc|/|OPENSSL_realloc| result. 2016-02-11 22:07:56 +00:00
ec_montgomery.c Remove group_clear_finish EC_GROUP hooks. 2016-01-28 00:17:43 +00:00
ec_test.cc Add tests for EC keys with specified curves. 2016-02-16 21:51:32 +00:00
ec.c Tweaks for node.js 2016-01-26 23:23:42 +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 Remove unused |ec_GFp_simple_group_check_discriminant|. 2016-02-08 18:33:09 +00:00
oct.c Add EC_POINT_point2cbb. 2016-02-02 19:04:33 +00:00
p224-64.c Remove duplicative ECC |group_init| and |group_set_curve| methods. 2016-02-08 18:31:46 +00:00
p256-64.c Remove duplicative ECC |group_init| and |group_set_curve| methods. 2016-02-08 18:31:46 +00:00
p256-x86_64-table.h Use |alignas| for alignment. 2016-01-25 23:05:04 +00:00
p256-x86_64.c Remove group_clear_finish EC_GROUP hooks. 2016-01-28 00:17:43 +00:00
simple.c Remove unused |ec_GFp_simple_group_check_discriminant|. 2016-02-08 18:33:09 +00:00
util-64.c Add 64-bit, P-256 implementation. 2015-04-16 13:53:05 -07:00
wnaf.c Remove |EC_POINTs_mul| & simplify p256-x86_64. 2015-11-19 01:08:46 +00:00