RSA: Extract much of the rsa_pkey_export_to() code to a separate function
[openssl.git] / include / crypto / rsa.h
index 7ce1fdb3393cd25e947b70bb6ae6a4aa9a024400..321c7f8c1e7f8d0e173aef207e3600c912d7baf8 100644 (file)
@@ -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,