David Benjamin 86ada1ea2f Add new APIs for creating RSA keys
This adds APIs for constructing RSA keys given all the parameters. This
is much less tedious than the set0 functions, and also avoids issues
caused by deferred initialization.

It doesn't quite finish initializing the keys on construction, as that
is tied up in the rest of this mess. But later work, probably after
Conscrypt is moved to these APIs, will do this.

As part of this, add APIs that explicitly create RSA keys with no e.
There is actually no way to do this right now without reaching into
library internals, because RSA_set0_key refuses to accept an e-less
private key. Handle this by adding a flag.

I also had to add a path for Conscrypt to make an RSA_METHOD-backed key
with n but no e. (They need n to compute RSA-PSS padding.) I think that
all wants to be rethought but, for now, just add an API for it.

This bumps BORINGSSL_API_VERSION so Conscrypt can have an easier time
switching to the new APIs.

Bug: 316
Change-Id: I81498a7d0690886842016c3680ea27d1ee0fa490
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/59386
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
2023-05-01 21:50:19 +00:00
..
2023-03-16 23:46:11 +00:00
2023-04-24 14:01:34 +00:00
2019-04-17 20:57:57 +00:00
2023-04-25 18:50:59 +00:00
2023-02-08 21:48:53 +00:00
2023-05-01 17:00:03 +00:00
2022-06-14 17:57:23 +00:00
2023-04-25 18:50:59 +00:00
2023-04-11 21:40:44 +00:00
2023-03-06 20:05:26 +00:00
2018-09-05 23:41:25 +00:00
2022-06-08 18:05:50 +00:00
2023-03-29 00:29:21 +00:00
2023-01-27 14:19:27 +00:00
2023-04-14 22:58:17 +00:00
2023-01-27 14:19:27 +00:00
2020-05-14 18:17:12 +00:00