Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
BN_mod_inverse — compute inverse modulo nSYNOPSIS
#include <openssl/bn.h>BN_mod_inverse(BIGNUM *r, const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);
DESCRIPTION
BN_mod_inverse() computes the inverse of a modulo n and places the result in r ((a*r)%n==1
). If r is NULL, a new BIGNUM is created.