boringssl/crypto/rsa
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
..
blinding.c Remove unnecessary NULL checks, part 4. 2015-05-04 23:13:12 +00:00
CMakeLists.txt Convert rsa_test to C++. 2015-06-08 22:11:20 +00:00
internal.h Multi-prime RSA support. 2015-06-05 18:39:44 +00:00
padding.c Remove unnecessary NULL checks, part 4. 2015-05-04 23:13:12 +00:00
rsa_asn1.c Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
rsa_impl.c Check for BN_copy failures. 2015-06-15 17:52:40 +00:00
rsa_test.cc Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
rsa.c Export pkcs1_prefixed_msg as RSA_add_pkcs1_prefix. 2015-06-16 19:09:45 +00:00