Home | History | Annotate | Download | only in bn

Lines Matching refs:Xp

92  * Xp1, Xp2 and Xp derive the prime p. If the parameters p1 or p2 are
97 const BIGNUM *Xp, const BIGNUM *Xp1, const BIGNUM *Xp2,
152 if (!BN_mod_sub(p, p, Xp, p1p2, ctx))
155 if (!BN_add(p, p, Xp))
192 /* Generate pair of paramters Xp, Xq for X9.31 prime generation.
196 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx)
206 /* The random value Xp must be between sqrt(2) * 2^(nbits-1) and
210 if (!BN_rand(Xp, nbits, 1, 0))
220 /* Check that |Xp - Xq| > 2^(nbits - 100) */
221 BN_sub(t, Xp, Xq);
239 * Due to the fact that |Xp - Xq| > 2^(nbits - 100) must be satisfied Xp and Xq
245 const BIGNUM *Xp,
261 if (!BN_X931_derive_prime_ex(p, p1, p2, Xp, Xp1, Xp2, e, ctx, cb))