Lines Matching refs:bits
23 static int bnrand(BNRAND_FLAG flag, BIGNUM *rnd, int bits, int top, int bottom, in bnrand() argument
30 if (bits == 0) { in bnrand()
36 if (bits < 0 || (bits == 1 && top > 0)) in bnrand()
39 bytes = (bits + 7) / 8; in bnrand()
40 bit = (bits - 1) % 8; in bnrand()
100 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, in BN_rand_ex() argument
103 return bnrand(NORMAL, rnd, bits, top, bottom, strength, ctx); in BN_rand_ex()
106 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() argument
108 return bnrand(NORMAL, rnd, bits, top, bottom, 0, NULL); in BN_rand()
111 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_bntest_rand() argument
113 return bnrand(TESTING, rnd, bits, top, bottom, 0, NULL); in BN_bntest_rand()
117 int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, in BN_priv_rand_ex() argument
120 return bnrand(PRIVATE, rnd, bits, top, bottom, strength, ctx); in BN_priv_rand_ex()
124 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_priv_rand() argument
126 return bnrand(PRIVATE, rnd, bits, top, bottom, 0, NULL); in BN_priv_rand()
229 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_pseudo_rand() argument
231 return BN_rand(rnd, bits, top, bottom); in BN_pseudo_rand()