boringssl/tool
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
..
args.cc Fix build. 2015-06-05 19:13:31 +00:00
client.cc Add a flag to bssl client to enable False Start. 2015-06-05 18:40:18 +00:00
CMakeLists.txt Multi-prime RSA support. 2015-06-05 18:39:44 +00:00
const.cc Make constants in bssl tool actually const. 2015-06-08 21:43:15 +00:00
digest.cc Use smart pointers instead of gotos in digest.cc. 2015-04-13 20:54:19 +00:00
genrsa.cc Possible Windows build fix. 2015-06-05 12:25:51 -07:00
internal.h Include base.h in tool/internal.h. 2015-06-08 14:52:13 -07:00
pkcs12.cc Rename BIO_print_errors_fp back to ERR_print_errors_fp & refactor it. 2015-04-13 20:23:29 +00:00
rand.cc Fix standalone build on Mac. 2015-04-20 16:50:18 +00:00
server.cc Eliminate unnecessary includes from low-level crypto modules. 2015-04-13 20:49:18 +00:00
speed.cc Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
tool.cc Multi-prime RSA support. 2015-06-05 18:39:44 +00:00
transport_common.cc Fix standalone build on Mac. 2015-04-20 16:50:18 +00:00
transport_common.h Enable bssl client/s_client and server/s_server on Windows. 2015-01-28 20:24:09 +00:00