Lines Matching defs:Xp
49 * and Xp derive the prime p. If the parameters p1 or p2 are not NULL they
54 const BIGNUM *Xp, const BIGNUM *Xp1,
113 if (!BN_mod_sub(p, p, Xp, p1p2, ctx))
116 if (!BN_add(p, p, Xp))
158 * Generate pair of parameters Xp, Xq for X9.31 prime generation. Note: nbits
162 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx)
174 * The random value Xp must be between sqrt(2) * 2^(nbits-1) and 2^nbits
178 if (!BN_priv_rand_ex(Xp, nbits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ANY, 0,
192 /* Check that |Xp - Xq| > 2^(nbits - 100) */
193 if (!BN_sub(t, Xp, Xq))
214 * relevant parameter will be stored in it. Due to the fact that |Xp - Xq| >
215 * 2^(nbits - 100) must be satisfied Xp and Xq are generated using the
221 const BIGNUM *Xp,
238 if (!BN_X931_derive_prime_ex(p, p1, p2, Xp, Xp1, Xp2, e, ctx, cb))