Lines Matching refs:BIGNUM
53 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
54 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
366 int BN_is_prime(const BIGNUM *a, int checks, void (*callback)(int,int,void *),
372 int BN_is_prime_fasttest(const BIGNUM *a, int checks,
380 BIGNUM *A1, *A1_odd, *check; /* taken from ctx */
382 const BIGNUM *A = NULL;
408 BIGNUM *t;
480 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
481 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont)
504 int BN_mod_exp_mont(BIGNUM *rr, BIGNUM *a, const BIGNUM *p,
505 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
509 BIGNUM *d,*r;
510 BIGNUM *aa;
511 BIGNUM val[TABLE_SIZE];
639 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w)
662 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
721 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
728 int BN_mod_mul_montgomery(BIGNUM *r, BIGNUM *a, BIGNUM *b,
731 BIGNUM *tmp,*tmp2;
758 int BN_from_montgomery(BIGNUM *ret, BIGNUM *a, BN_MONT_CTX *mont,
764 BIGNUM *n,*r;
868 BIGNUM *t1,*t2;
929 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
931 BIGNUM Ri,*R;
939 BIGNUM tmod;
991 BIGNUM *BN_value_one(void)
994 static BIGNUM const_one={&data_one,1,1,0};
1000 BIGNUM *BN_mod_inverse(BIGNUM *in, BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
1002 BIGNUM *A,*B,*X,*Y,*M,*D,*R=NULL;
1003 BIGNUM *T,*ret=NULL;
1063 int BN_set_bit(BIGNUM *a, int n)