boringssl/crypto/rsa
David Benjamin 073391f7d6 Detach encrypt and keygen hooks from RSA_METHOD.
Nothing is using them. For encrypt, there's generally no need to swap
out public key operations. keygen seems especially pointless as one
could just as easily call the other function directly.

The one behavior change is RSA_encrypt now gracefully detects if called
on an empty RSA, to match the other un-RSA_METHOD-ed functions which had
similar treatments. (Conscrypt was filling in the encrypt function
purely to provide a non-crashing no-op function. They leave the public
bits blank and pass their custom keys through sufficiently many layers
of Java crypto goo that it's not obvious whether this is reachable.)

We still can't take the function pointers out, but once
96bbe03dfd
trickles back into everything, we can finally prune RSA_METHOD.

Bump BORINGSSL_API_VERSION as a convenience so I can land the
corresponding removal in Conscrypt immediately.

Change-Id: Ia2ef4780a5dfcb869b224e1ff632daab8d378b2e
Reviewed-on: https://boringssl-review.googlesource.com/15864
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-05-03 19:15:47 +00:00
..
blinding.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
CMakeLists.txt Convert rsa_test to GTest. 2017-02-16 22:23:16 +00:00
internal.h Detach encrypt and keygen hooks from RSA_METHOD. 2017-05-03 19:15:47 +00:00
padding.c Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
rsa_asn1.c Remove remnants of multiprime RSA parsing. 2017-04-21 17:49:46 +00:00
rsa_impl.c Detach encrypt and keygen hooks from RSA_METHOD. 2017-05-03 19:15:47 +00:00
rsa_test.cc Consistently check length in RSA_add_pkcs1_prefix. 2017-05-02 20:29:47 +00:00
rsa.c Detach encrypt and keygen hooks from RSA_METHOD. 2017-05-03 19:15:47 +00:00