Set the modular-exponentiation callback on a custom DSA_METHOD (deprecated).
Declared in <openssl/dsa.h>
[[deprecated]]
int
DSA_meth_set_bn_mod_exp(
DSA_METHOD* dsam,
int(* bn_mod_exp)(DSA*, BIGNUM*, BIGNUM const*, BIGNUM const*, BIGNUM const*, BN_CTX*, BN_MONT_CTX*));
Deprecated. Use of this entity is allowed but discouraged.
1 on success.
| Name | Description |
|---|---|
| dsam | Method object to update. |
| bn_mod_exp | Callback computing r = a^p mod m (with optional Montgomery ctx), or NULL. |