From 645a541a3fdabd32cb8cbda48651f4150486189d Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 2 May 2020 13:02:29 +0200 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/11710) --- include/crypto/rsa.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/crypto') 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, -- cgit v1.2.3