Home | History | Annotate | Download | only in bn

Lines Matching refs: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;
518 BIGNUM *t;
603 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
604 const BIGNUM *a1_odd, int k, BN_CTX *ctx,
636 static BN_ULONG get_word(const BIGNUM *bn) {
643 static int probable_prime(BIGNUM *rnd, int bits) {
721 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add,
722 const BIGNUM *rem, BN_CTX *ctx) {
724 BIGNUM *t1;
772 static int probable_prime_dh_safe(BIGNUM *p, int bits, const BIGNUM *padd,
773 const BIGNUM *rem, BN_CTX *ctx) {
775 BIGNUM *t1, *qadd, *q;