Lines Matching defs:nbits
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)
207 if ((nbits < 1024) || (nbits & 0xff))
209 nbits >>= 1;
211 * The random value Xp must be between sqrt(2) * 2^(nbits-1) and 2^nbits
215 if (!BN_rand(Xp, nbits, 1, 0))
222 if (!BN_rand(Xq, nbits, 1, 0))
224 /* Check that |Xp - Xq| > 2^(nbits - 100) */
226 if (BN_num_bits(t) > (nbits - 100))
246 * 2^(nbits - 100) must be satisfied Xp and Xq are generated using the