Lines Matching defs:add
25 const BIGNUM *add, const BIGNUM *rem,
124 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb,
137 } else if (add == NULL && safe && bits < 6 && bits != 3) {
159 if (add == NULL) {
163 if (!probable_prime_dh(ret, bits, safe, mods, add, rem, ctx))
214 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb)
222 retval = BN_generate_prime_ex2(ret, bits, safe, add, rem, cb, ctx);
530 * and satisfies |rnd| % |add| == |rem| by sieving.
537 const BIGNUM *add, const BIGNUM *rem,
550 if (maxdelta > BN_MASK2 - BN_get_word(add))
551 maxdelta = BN_MASK2 - BN_get_word(add);
557 /* we need ((rnd-rem) % add) == 0 */
559 if (!BN_mod(t1, rnd, add, ctx))
573 if (!BN_add(rnd, rnd, add))
594 delta += BN_get_word(add);