Lines Matching full:bignum
332 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
333 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
334 static int probable_prime(BIGNUM *rnd, int bits);
335 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add,
336 const BIGNUM *rem, BN_CTX *ctx);
337 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, const BIGNUM *add,
338 const BIGNUM *rem, BN_CTX *ctx);
355 int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add,
356 const BIGNUM *rem, BN_GENCB *cb) {
357 BIGNUM *t;
454 int BN_primality_test(int *is_probably_prime, const BIGNUM *candidate,
470 int BN_is_prime_ex(const BIGNUM *candidate, int checks, BN_CTX *ctx, BN_GENCB *cb) {
474 int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
479 BIGNUM *A1, *A1_odd, *check; /* taken from ctx */
481 const BIGNUM *A = NULL;
522 BIGNUM *t = BN_CTX_get(ctx);
606 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
607 const BIGNUM *a1_odd, int k, BN_CTX *ctx,
639 static BN_ULONG get_word(const BIGNUM *bn) {
646 static int probable_prime(BIGNUM *rnd, int bits) {
728 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add,
729 const BIGNUM *rem, BN_CTX *ctx) {
731 BIGNUM *t1;
783 static int probable_prime_dh_safe(BIGNUM *p, int bits, const BIGNUM *padd,
784 const BIGNUM *rem, BN_CTX *ctx) {
786 BIGNUM *t1, *qadd, *q;