NAME
BN_mod_inverse — compute inverse modulo nSYNOPSIS
#include <openssl/bn.h>BN_mod_inverse(BIGNUM *r, BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);
DESCRIPTION
BN_mod_inverse() computes the inverse of a modulo n add places the result in r ((a*r)%n==1
). If r is NULL, a new BIGNUM is created.