Set the CRT modular-exponentiation callback on an RSA_METHOD (deprecated).
Declared in <openssl/rsa.h>
[[deprecated]]
int
RSA_meth_set_bn_mod_exp(
RSA_METHOD* rsa,
int(* bn_mod_exp)(BIGNUM*, BIGNUM const*, BIGNUM const*, BIGNUM const*, BN_CTX*, BN_MONT_CTX*));
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| 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). |