Lines Matching refs:bits
119 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
125 if (bits == 0)
131 bytes=(bits+7)/8;
132 bit=(bits-1)%8;
142 /* make a random number and set the top and bottom bits */
212 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
214 return bnrand(0, rnd, bits, top, bottom);
217 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
219 return bnrand(1, rnd, bits, top, bottom);
223 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
225 return bnrand(2, rnd, bits, top, bottom);
319 /* We use 512 bits of random data per iteration to
320 * ensure that we have at least |range| bits of randomness. */