-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provider: Add support for OSSL_PKEY_PARAM_RSA_DERIVE_FROM_PQ on import
When importing a private RSA key from params, allow that only private CRT key components OSSL_PARAM_RSA_FACTOR1, OSSL_PARAM_RSA_FACTOR2, as well as the public key components OSSL_PARAM_RSA_N and OSSL_PKEY_PARAM_RSA_E are available in the params, when also OSSL_PKEY_PARAM_RSA_DERIVE_FROM_PQ with a nonzero value is contained. In this case the other CRT components are calculated to form a complete CRT key. OSSL_PKEY_PARAM_RSA_DERIVE_FROM_PQ is available since OpenSSL 3.3. Signed-off-by: Ingo Franzki <[email protected]>
- Loading branch information
Showing
1 changed file
with
125 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters