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
..
2015-05-20 19:15:26 +00:00
2015-07-06 22:41:16 +00:00
2015-05-07 21:13:41 +00:00
2015-04-06 16:58:45 -07:00
2015-05-21 17:59:48 +00:00
2015-06-25 00:03:02 +00:00
2015-05-21 18:00:10 +00:00
2015-05-21 18:00:10 +00:00
2015-02-11 23:14:04 +00:00
2015-07-06 19:35:44 -07:00
2015-07-07 22:50:53 +00:00
2015-07-07 22:50:53 +00:00
2015-06-25 00:03:02 +00:00
2015-05-21 18:00:10 +00:00
2015-05-28 17:22:19 +00:00
2015-05-05 00:24:59 +00:00
2015-07-07 22:50:53 +00:00
2015-07-07 22:50:53 +00:00
2015-06-16 18:07:27 +00:00
2015-01-14 23:38:11 +00:00
2015-02-20 23:59:59 +00:00
2015-05-20 17:44:44 +00:00
2014-07-31 22:03:11 +00:00
2015-03-31 22:21:42 +00:00