Lines Matching defs:p1
66 * X9.31 prime derivation. This is used to generate the primes pi (p1, p2,
93 * and Xp derive the prime p. If the parameters p1 or p2 are not NULL they
97 int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
111 if (!p1)
112 p1 = BN_CTX_get(ctx);
123 if (!bn_x931_derive_pi(p1, Xp1, ctx, cb))
129 if (!BN_mul(p1p2, p1, p2, ctx))
134 if (!BN_mod_inverse(p, p2, p1, ctx))
140 if (!BN_mod_inverse(t, p1, p2, ctx))
143 if (!BN_mul(t, t, p1, ctx))
243 * Generate primes using X9.31 algorithm. Of the values p, p1, p2, Xp1 and
250 int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
267 if (!BN_X931_derive_prime_ex(p, p1, p2, Xp, Xp1, Xp2, e, ctx, cb))