-.\" $OpenBSD: RSA_new.3,v 1.17 2022/07/13 21:51:35 schwarze Exp $
+.\" $OpenBSD: RSA_new.3,v 1.18 2023/11/19 21:03:22 tb Exp $
.\" full merge up to:
.\" OpenSSL doc/man3/RSA_new.pod e9b77246 Jan 20 19:58:49 2017 +0100
.\" OpenSSL doc/crypto/rsa.pod 35d2e327 Jun 3 16:19:49 2016 -0400 (final)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 13 2022 $
+.Dd $Mdocdate: November 19 2023 $
.Dt RSA_NEW 3
.Os
.Sh NAME
If it reaches 0, it calls the optional
.Fa finish
function set up with
-.Xr RSA_meth_set_finish 3 ,
-calls
-.Xr ENGINE_finish 3
-if
-.Fa rsa
-uses an engine, and frees the
+.Xr RSA_meth_set_finish 3
+and frees the
.Vt RSA
structure and its components.
The key is erased before the memory is returned to the system.
.Pp
Note that RSA keys may use non-standard
.Vt RSA_METHOD
-implementations, either directly or by the use of
-.Vt ENGINE
-modules.
-In some cases (e.g. an
-.Vt ENGINE
-providing support for hardware-embedded keys), these
+implementations.
+In some cases, these
.Vt BIGNUM
values will not be used by the implementation or may be used for
alternative data storage.