[#RSA_meth_set_bn_mod_exp] = RSA_meth_set_bn_mod_exp :mrdocs: Set the CRT modular‐exponentiation callback on an RSA_METHOD (deprecated). == Synopsis Declared in `<openssl/rsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int RSA_meth_set_bn_mod_exp( xref:RSA_METHOD.adoc[RSA_METHOD]* rsa, int(* bn_mod_exp)(xref:BIGNUM.adoc[BIGNUM]*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BN_CTX.adoc[BN_CTX]*, xref:BN_MONT_CTX.adoc[BN_MONT_CTX]*)); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *rsa* | Method whose bn_mod_exp hook is replaced. | *bn_mod_exp* | Callback computing r = aˆp mod m (with optional Montgomery context). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#