boringssl/crypto/evp
David Benjamin 8cbb5f8f20 Add a very roundabout EC keygen API.
OpenSSL's EVP-level EC API involves a separate "paramgen" operation,
which is ultimately just a roundabout way to go from a NID to an
EC_GROUP. But Node uses this, and it's the pattern used within OpenSSL
these days, so this appears to be the official upstream recommendation.

Also add a #define for OPENSSL_EC_EXPLICIT_CURVE, because Node uses it,
but fail attempts to use it. Explicit curve encodings are forbidden by
RFC 5480 and generally a bad idea. (Parsing such keys back into OpenSSL
will cause it to lose the optimized path.)

Change-Id: I5e97080e77cf90fc149f6cf6f2cc4900f573fc64
Reviewed-on: https://boringssl-review.googlesource.com/c/34565
Commit-Queue: David Benjamin <davidben@google.com>
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@google.com>
2019-01-25 23:08:12 +00:00
..
digestsign.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
evp_asn1.c Add some Node compatibility functions. 2019-01-25 16:50:30 +00:00
evp_ctx.c Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
evp_extra_test.cc Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
evp_test.cc Ignore new fields in forthcoming Wycheproof tests. 2019-01-14 22:02:37 +00:00
evp_tests.txt Update citations to RFC 8410. 2018-08-10 14:14:38 +00:00
evp.c Clarify thread-safety of key objects. 2018-08-28 18:52:59 +00:00
internal.h Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
p_dsa_asn1.c Use BN_mod_exp_mont_consttime in dsa_priv_decode. 2017-09-29 23:19:22 +00:00
p_ec_asn1.c EC_GROUP_dup cannot fail. 2018-04-25 16:43:19 +00:00
p_ec.c Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
p_ed25519_asn1.c Update citations to RFC 8410. 2018-08-10 14:14:38 +00:00
p_ed25519.c Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
p_rsa_asn1.c Add some missing OpenSSL 1.1.0 accessors. 2017-11-22 18:43:38 +00:00
p_rsa.c Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
pbkdf_test.cc Convert various tests to GTest. 2017-05-23 22:34:09 +00:00
pbkdf.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
print.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
scrypt_test.cc Implement scrypt from RFC 7914. 2017-06-12 20:32:21 +00:00
scrypt_tests.txt Implement scrypt from RFC 7914. 2017-06-12 20:32:21 +00:00
scrypt.c Modernize OPENSSL_COMPILE_ASSERT, part 2. 2018-11-14 16:06:37 +00:00
sign.c