boringssl/crypto/ec
David Benjamin 232127d245 Fold EC_GROUP_new_curve_GFp and EC_GROUP_set_generator into a EC_GROUP_new_arbitrary.
This is only for Conscrypt which always calls the pair in succession. (Indeed
it wouldn't make any sense to not call it.) Remove those two APIs and replace
with a single merged API. This way incomplete EC_GROUPs never escape outside
our API boundary and EC_GROUPs may *finally* be made immutable.

Also add a test for this to make sure I didn't mess it up.

Add a temporary BORINGSSL_201512 define to ease the transition for Conscrypt.
Conscrypt requires https://android-review.googlesource.com/#/c/187801/ before
picking up this change.

Change-Id: I3706c2ceac31ed2313175ba5ee724bd5c74ef6e1
Reviewed-on: https://boringssl-review.googlesource.com/6550
Reviewed-by: Adam Langley <agl@google.com>
2016-01-21 22:35:46 +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 Remove the CRYPTO_EX_new callback. 2015-12-15 21:29:46 +00:00
ec_montgomery.c Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +00:00
ec_test.cc Fold EC_GROUP_new_curve_GFp and EC_GROUP_set_generator into a EC_GROUP_new_arbitrary. 2016-01-21 22:35:46 +00:00
ec.c Fold EC_GROUP_new_curve_GFp and EC_GROUP_set_generator into a EC_GROUP_new_arbitrary. 2016-01-21 22:35:46 +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 Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +00:00
oct.c Don't encode or decode ∞. 2015-11-12 23:52:37 +00:00
p224-64.c Slightly tweak some array allocations. 2015-12-16 21:19:32 +00:00
p256-64.c Fix trivial -Wcast-qual violations. 2016-01-21 21:06:02 +00:00
p256-x86_64-table.h Add Intel's P-256 2015-11-03 22:08:47 +00:00
p256-x86_64.c Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +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 Remove |EC_POINTs_mul| & simplify p256-x86_64. 2015-11-19 01:08:46 +00:00