boringssl/ssl
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
..
pqueue Fix some malloc test crashs. 2015-05-21 18:00:10 +00:00
test Convert the renegotiation extension to the new system. 2015-07-01 19:30:53 +00:00
CMakeLists.txt Convert the renegotiation extension to the new system. 2015-07-01 19:30:53 +00:00
d1_both.c Add CBB_zero to set a CBB to the zero state. 2015-07-01 19:45:43 +00:00
d1_clnt.c Prune ssl3_check_cert_and_algorithm. 2015-06-08 22:27:12 +00:00
d1_lib.c Further tidy up cipher logic. 2015-06-01 22:48:30 +00:00
d1_meth.c Further tidy up cipher logic. 2015-06-01 22:48:30 +00:00
d1_pkt.c Split ssl_read_bytes hook into app_data and close_notify hooks. 2015-06-01 22:27:55 +00:00
d1_srtp.c
d1_srvr.c Decide whether or not to request client certificates early. 2015-05-27 21:53:16 +00:00
internal.h Remove SSL_build_cert_chain. 2015-07-07 01:23:18 +00:00
s3_both.c Fold away certificate slots mechanism. 2015-07-07 01:22:13 +00:00
s3_clnt.c Fold away certificate slots mechanism. 2015-07-07 01:22:13 +00:00
s3_enc.c
s3_lib.c Fix Windows build. 2015-07-06 19:01:48 -07:00
s3_meth.c Further tidy up cipher logic. 2015-06-01 22:48:30 +00:00
s3_pkt.c Limit the number of warning alerts silently consumed. 2015-06-08 22:16:14 +00:00
s3_srvr.c Fold away certificate slots mechanism. 2015-07-07 01:22:13 +00:00
ssl_aead_ctx.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
ssl_algs.c
ssl_asn1.c Add CBB_zero to set a CBB to the zero state. 2015-07-01 19:45:43 +00:00
ssl_cert.c Clear key_method in ssl_cert_clear_certs. 2015-07-07 01:56:11 +00:00
ssl_cipher.c Fold away certificate slots mechanism. 2015-07-07 01:22:13 +00:00
ssl_lib.c Document APIs relating to configuring certificates and private keys. 2015-07-07 01:52:39 +00:00
ssl_rsa.c Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
ssl_sess.c Fix Windows build. 2015-07-01 23:01:05 +00:00
ssl_stat.c Remove ssl2.h and ssl23.h. 2015-07-01 21:47:01 +00:00
ssl_test.cc Add SSL_SESSION_from_bytes. 2015-06-16 18:12:39 +00:00
ssl_txt.c
t1_enc.c Fold TLS1_PRF_* into SSL_HANDSHAKE_MAC_* 2015-06-01 22:43:06 +00:00
t1_lib.c Fold away certificate slots mechanism. 2015-07-07 01:22:13 +00:00