[#RSA_meth_set_mod_exp]
= RSA&lowbar;meth&lowbar;set&lowbar;mod&lowbar;exp
:mrdocs:

Set the CRT modular&hyphen;exponentiation callback on a custom RSA&lowbar;METHOD (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;rsa&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
RSA&lowbar;meth&lowbar;set&lowbar;mod&lowbar;exp(
    xref:RSA_METHOD.adoc[RSA&lowbar;METHOD]* rsa,
    int(* mod&lowbar;exp)(xref:BIGNUM.adoc[BIGNUM]*, xref:BIGNUM.adoc[BIGNUM] const*, xref:RSA.adoc[RSA]*, xref:BN_CTX.adoc[BN&lowbar;CTX]*));
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rsa*
| Method object to update&period;
| *mod&lowbar;exp*
| Callback used for CRT computations, or NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
