boringssl/crypto/rsa
Adam Langley 6bc658d2e3 Split off private_transform function in RSA.
This change extracts two, common parts of RSA_decrypt and RSA_sign into
a function called |private_transform|. It also allows this to be
overridden in a method, which is convenient for opaque keys that only
expose the raw RSA transform as it means that the padding code from
BoringSSL can be easily reimplemented.

One significant change here is that short RSA ciphertexts will no longer
be accepted. I think this is correct and OpenSSL has a comment about PGP
mistakenly stripping leading zeros. However, these is the possibility
that it could break something.

Change-Id: I258c5cbbf21314cc9b6e8d2a2b898fd9a440cd40
Reviewed-on: https://boringssl-review.googlesource.com/1554
Reviewed-by: Adam Langley <agl@google.com>
2014-08-19 18:37:28 +00:00
..
blinding.c Inital import. 2014-06-20 13:17:32 -07:00
CMakeLists.txt Inital import. 2014-06-20 13:17:32 -07:00
internal.h Split off private_transform function in RSA. 2014-08-19 18:37:28 +00:00
padding.c Spell Bleichenbacher's name right. 2014-08-04 18:53:41 +00:00
rsa_asn1.c Inital import. 2014-06-20 13:17:32 -07:00
rsa_error.c Split off private_transform function in RSA. 2014-08-19 18:37:28 +00:00
rsa_impl.c Split off private_transform function in RSA. 2014-08-19 18:37:28 +00:00
rsa_test.c Add RSA_check_key function. 2014-07-28 21:36:57 +00:00
rsa.c Split off private_transform function in RSA. 2014-08-19 18:37:28 +00:00