RSA: Extract much of the rsa_pkey_export_to() code to a separate function
authorRichard Levitte <levitte@openssl.org>
Sat, 2 May 2020 11:02:29 +0000 (13:02 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 May 2020 10:16:34 +0000 (12:16 +0200)
commit645a541a3fdabd32cb8cbda48651f4150486189d
tree72028691eee168d15848e30ebef78424bc20b132
parent484d1a73c70000ad07b156f04368b3922f9910b7
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)
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_backend.c
include/crypto/rsa.h