boringssl/crypto/evp
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
..
algorithm.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
CMakeLists.txt Add a run_tests target to run all tests. 2015-10-26 20:33:44 +00:00
digestsign.c Don't default to SHA-1 in |EVP_DigestSignInit|/|EVP_DigestVerifyInit|. 2015-10-26 21:26:51 +00:00
evp_asn1.c Update comments to better document in-place semantics. 2016-01-19 17:01:37 +00:00
evp_ctx.c Remove app_data from EVP_PKEY_CTX. 2016-01-28 00:29:34 +00:00
evp_extra_test.cc Add tests for EC keys with specified curves. 2016-02-16 21:51:32 +00:00
evp_test.cc Use more C++11 features. 2016-01-28 00:52:37 +00:00
evp_tests.txt Implement ECDSA_SIG_{parse,marshal} with crypto/bytestring. 2015-07-07 02:28:42 +00:00
evp.c Don't allow EVP_PKEY_RSA2. 2016-01-28 00:43:37 +00:00
internal.h Remove pkey_base_id. 2016-01-28 15:55:24 +00:00
p_dsa_asn1.c Don't cast |OPENSSL_malloc|/|OPENSSL_realloc| result. 2016-02-11 22:07:56 +00:00
p_ec_asn1.c Don't cast |OPENSSL_malloc|/|OPENSSL_realloc| result. 2016-02-11 22:07:56 +00:00
p_ec.c Implement pkey_ec_keygen with EC_KEY APIs. 2016-01-28 00:28:43 +00:00
p_rsa_asn1.c Don't cast |OPENSSL_malloc|/|OPENSSL_realloc| result. 2016-02-11 22:07:56 +00:00
p_rsa.c Un-const EVP_PKEY_CTX_set0_rsa_oaep_label and fix overflow check. 2016-01-28 00:34:38 +00:00
pbkdf_test.cc Remove calls to ERR_load_crypto_strings. 2016-01-25 23:09:08 +00:00
pbkdf.c Reject iterations=0 when calling PKCS5_PBKDF2_HMAC(). 2015-10-13 19:40:55 +00:00
sign.c Take advantage of normalized return values. 2015-03-13 19:40:42 +00:00