boringssl/crypto/fipsmodule/rsa
David Benjamin e55b32ddff Don't crash when decrypting with public keys.
Public and private RSA keys have the same type in OpenSSL, so it's
probably prudent for us to catch this case with an error rather than
crash. (As we do if you, say, configure RSA-PSS parameters on an Ed25519
EVP_PKEY.) Bindings libraries, in particular, tend to hit this sort of
then when their callers do silly things.

Change-Id: I2555e9bfe716a9f15273abd887a8459c682432dd
Reviewed-on: https://boringssl-review.googlesource.com/17325
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-06-22 15:20:15 +00:00
..
blinding.c Move rsa/ to fipsmodule/rsa/ 2017-05-04 21:22:39 +00:00
internal.h Move rsa/ to fipsmodule/rsa/ 2017-05-04 21:22:39 +00:00
padding.c Move rsa/ to fipsmodule/rsa/ 2017-05-04 21:22:39 +00:00
rsa_impl.c Don't crash when decrypting with public keys. 2017-06-22 15:20:15 +00:00
rsa.c Remove ex_data's dup hook. 2017-05-23 22:43:59 +00:00