Lines Matching refs:bottom
23 static int bnrand(BNRAND_FLAG flag, BIGNUM *rnd, int bits, int top, int bottom,
31 if (top != BN_RAND_TOP_ANY || bottom != BN_RAND_BOTTOM_ANY)
49 /* make a random number and set the top and bottom bits */
87 if (bottom) /* set bottom bit if requested */
102 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
105 return bnrand(NORMAL, rnd, bits, top, bottom, strength, ctx);
108 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
110 return bnrand(NORMAL, rnd, bits, top, bottom, 0, NULL);
113 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
115 return bnrand(TESTING, rnd, bits, top, bottom, 0, NULL);
119 int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
122 return bnrand(PRIVATE, rnd, bits, top, bottom, strength, ctx);
126 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom)
128 return bnrand(PRIVATE, rnd, bits, top, bottom, 0, NULL);
231 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
233 return BN_rand(rnd, bits, top, bottom);