boringssl/crypto/evp
David Benjamin 74f711083d Parse RSAPrivateKey with CBS.
This removes the version field from RSA and instead handles versioning
as part of parsing. (As a bonus, we now correctly limit multi-prime RSA
to version 1 keys.)

Most consumers are also converted. old_rsa_priv_{de,en}code are left
alone for now. Those hooks are passed in parameters which match the old
d2i/i2d pattern (they're only used in d2i_PrivateKey and
i2d_PrivateKey).

Include a test which, among other things, checks that public keys being
serialized as private keys are handled properly.

BUG=499653

Change-Id: Icdd5f0382c4a84f9c8867024f29756e1a306ba08
Reviewed-on: https://boringssl-review.googlesource.com/5273
Reviewed-by: Adam Langley <agl@google.com>
2015-07-07 22:50:53 +00:00
..
algorithm.c Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
asn1.c Remove unnecessary NULL checks, part 3. 2015-05-04 23:12:04 +00:00
CMakeLists.txt Remove EVP_PKEY_HMAC. 2015-06-25 00:03:02 +00:00
digestsign.c Remove EVP_PKEY_HMAC. 2015-06-25 00:03:02 +00:00
evp_ctx.c Remove EVP_PKEY_HMAC. 2015-06-25 00:03:02 +00:00
evp_extra_test.cc Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
evp_test.cc Remove EVP_PKEY_HMAC. 2015-06-25 00:03:02 +00:00
evp_tests.txt Implement ECDSA_SIG_{parse,marshal} with crypto/bytestring. 2015-07-07 02:28:42 +00:00
evp.c Remove EVP_PKEY_dup. 2015-07-01 21:38:39 +00:00
internal.h Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
p_dsa_asn1.c Remove info field on EVP_PKEY_ASN1_METHOD. 2015-07-07 01:11:46 +00:00
p_ec_asn1.c PKCS8_pkey_set0 doesn't take ownership on error. 2015-07-07 02:30:37 +00:00
p_ec.c Remove EVP_PKEY_HMAC. 2015-06-25 00:03:02 +00:00
p_rsa_asn1.c Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
p_rsa.c Remove EVP_PKEY_HMAC. 2015-06-25 00:03:02 +00:00
pbkdf_test.cc Rename BIO_print_errors_fp back to ERR_print_errors_fp & refactor it. 2015-04-13 20:23:29 +00:00
pbkdf.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
sign.c Take advantage of normalized return values. 2015-03-13 19:40:42 +00:00