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-02-02 19:14:15 +00:00
2014-06-20 13:17:32 -07:00
2015-02-11 23:11:55 +00:00
2014-11-06 01:34:33 +00:00
2015-06-23 15:46:00 -07:00
2014-06-20 13:17:32 -07:00
2015-02-02 19:14:15 +00:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2015-02-02 19:14:15 +00:00
2014-06-20 13:17:32 -07:00
2015-03-06 18:55:32 +00:00
2014-11-10 13:45:32 -08:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2015-02-02 19:14:15 +00:00
2014-06-20 13:17:32 -07:00
2015-02-02 19:14:15 +00:00
2014-06-20 13:17:32 -07:00
2015-07-07 22:50:53 +00:00
2014-06-20 13:17:32 -07:00
2015-05-20 19:18:30 +00:00
2014-06-20 13:17:32 -07:00
2015-05-20 19:15:26 +00:00
2015-02-10 01:23:34 +00:00
2015-05-20 19:15:26 +00:00
2015-05-20 19:18:30 +00:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00