RSA_meth_set_bn_mod_exp

Set the CRT modular-exponentiation callback on an RSA_METHOD (deprecated).

Synopsis

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*));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rsaMethod whose bn_mod_exp hook is replaced.
bn_mod_expCallback computing r = a^p mod m (with optional Montgomery context).