Lines Matching defs:Xp
93 * and Xp derive the prime p. If the parameters p1 or p2 are not NULL they
98 const BIGNUM *Xp, const BIGNUM *Xp1,
154 if (!BN_mod_sub(p, p, Xp, p1p2, ctx))
157 if (!BN_add(p, p, Xp))
195 * Generate pair of paramters Xp, Xq for X9.31 prime generation. Note: nbits
199 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx)
211 * The random value Xp must be between sqrt(2) * 2^(nbits-1) and 2^nbits
215 if (!BN_rand(Xp, nbits, 1, 0))
224 /* Check that |Xp - Xq| > 2^(nbits - 100) */
225 BN_sub(t, Xp, Xq);
242 * relevant parameter will be stored in it. Due to the fact that |Xp - Xq| >
243 * 2^(nbits - 100) must be satisfied Xp and Xq are generated using the
249 const BIGNUM *Xp,
264 if (!BN_X931_derive_prime_ex(p, p1, p2, Xp, Xp1, Xp2, e, ctx, cb))