diff options
author | Richard Levitte <levitte@openssl.org> | 2020-05-02 13:02:29 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-05-14 12:16:34 +0200 |
commit | 645a541a3fdabd32cb8cbda48651f4150486189d (patch) | |
tree | 72028691eee168d15848e30ebef78424bc20b132 /include | |
parent | 484d1a73c70000ad07b156f04368b3922f9910b7 (diff) |
RSA: Extract much of the rsa_pkey_export_to() code to a separate function
The resulting function, rsa_todata(), is designed to be usable by
providers as well.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11710)
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/rsa.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/rsa.h b/include/crypto/rsa.h index 7ce1fdb339..321c7f8c1e 100644 --- a/include/crypto/rsa.h +++ b/include/crypto/rsa.h @@ -21,6 +21,8 @@ int rsa_set0_all_params(RSA *r, const STACK_OF(BIGNUM) *primes, int rsa_get0_all_params(RSA *r, STACK_OF(BIGNUM_const) *primes, STACK_OF(BIGNUM_const) *exps, STACK_OF(BIGNUM_const) *coeffs); + +int rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]); int rsa_fromdata(RSA *rsa, const OSSL_PARAM params[]); int rsa_padding_check_PKCS1_type_2_TLS(OPENSSL_CTX *ctx, unsigned char *to, |