boringssl/crypto/evp
Emily Stark 62e0219679 Handle empty keys in EVP_marshal_public_key()
Instead of crashing when an empty key is passed to
EVP_marshal_public_key(), return with an
EVP_R_UNSUPPORTED_ALGORITHM_ERROR. This brings e.g. X509_PUBKEY_set()
closer to how it behaved before 68772b31 (previously, it returned an
error on an empty public key rather than dereferencing pkey->ameth).

Change-Id: Ieac368725adb7f22329c035d9d0685b44b885888
Reviewed-on: https://boringssl-review.googlesource.com/7351
Reviewed-by: David Benjamin <davidben@google.com>
2016-03-07 15:54:54 +00:00
..
CMakeLists.txt Pull EVP_PKEY print hooks out of the main method table. 2016-02-26 22:40: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 Handle empty keys in EVP_marshal_public_key() 2016-03-07 15:54:54 +00:00
evp_ctx.c Remove app_data from EVP_PKEY_CTX. 2016-01-28 00:29:34 +00:00
evp_extra_test.cc Handle empty keys in EVP_marshal_public_key() 2016-03-07 15:54:54 +00:00
evp_test.cc Implement new PKCS#8 parsers. 2016-02-17 17:24:10 +00:00
evp_tests.txt Implement new PKCS#8 parsers. 2016-02-17 17:24:10 +00:00
evp.c Decouple the EVP and PEM code. 2016-02-26 22:50:21 +00:00
internal.h Reimplement d2i_PrivateKey. 2016-02-26 23:33:50 +00:00
p_dsa_asn1.c Reimplement d2i_PrivateKey. 2016-02-26 23:33:50 +00:00
p_ec_asn1.c Reimplement d2i_PrivateKey. 2016-02-26 23:33:50 +00:00
p_ec.c Implement new PKCS#8 parsers. 2016-02-17 17:24:10 +00:00
p_rsa_asn1.c Reimplement d2i_PrivateKey. 2016-02-26 23:33:50 +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
print.c Move ASN1_bn_print to a static function in evp/print.c. 2016-02-26 23:35:10 +00:00
sign.c Take advantage of normalized return values. 2015-03-13 19:40:42 +00:00