Lines Matching refs:mod
334 BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
341 /* Used for reciprocal division/mod functions
581 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx);
584 const BIGNUM *mod, BN_CTX *ctx);
590 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod);
639 int BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p); /*r=a mod p*/
641 const BIGNUM *p, BN_CTX *ctx); /* r = (a * b) mod p */
643 BN_CTX *ctx); /* r = (a * a) mod p */
645 BN_CTX *ctx); /* r = (1 / b) mod p */
647 const BIGNUM *p, BN_CTX *ctx); /* r = (a / b) mod p */
649 const BIGNUM *p, BN_CTX *ctx); /* r = (a ^ b) mod p */
651 BN_CTX *ctx); /* r = sqrt(a) mod p */
653 BN_CTX *ctx); /* r^2 + r = a mod p */
661 /* r = a mod p */
663 const int p[], BN_CTX *ctx); /* r = (a * b) mod p */
665 BN_CTX *ctx); /* r = (a * a) mod p */
667 BN_CTX *ctx); /* r = (1 / b) mod p */
669 const int p[], BN_CTX *ctx); /* r = (a / b) mod p */
671 const int p[], BN_CTX *ctx); /* r = (a ^ b) mod p */
673 const int p[], BN_CTX *ctx); /* r = sqrt(a) mod p */
675 const int p[], BN_CTX *ctx); /* r^2 + r = a mod p */
681 /* faster mod functions for the 'NIST primes'