Lines Matching refs:top
23 static int bnrand(BNRAND_FLAG flag, BIGNUM *rnd, int bits, int top, int bottom, in bnrand() argument
31 if (top != BN_RAND_TOP_ANY || bottom != BN_RAND_BOTTOM_ANY) in bnrand()
36 if (bits < 0 || (bits == 1 && top > 0)) in bnrand()
74 if (top >= 0) { in bnrand()
75 if (top) { in bnrand()
102 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, in BN_rand_ex() argument
105 return bnrand(NORMAL, rnd, bits, top, bottom, strength, ctx); in BN_rand_ex()
108 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() argument
110 return bnrand(NORMAL, rnd, bits, top, bottom, 0, NULL); in BN_rand()
113 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_bntest_rand() argument
115 return bnrand(TESTING, rnd, bits, top, bottom, 0, NULL); in BN_bntest_rand()
119 int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, in BN_priv_rand_ex() argument
122 return bnrand(PRIVATE, rnd, bits, top, bottom, strength, ctx); in BN_priv_rand_ex()
126 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_priv_rand() argument
128 return bnrand(PRIVATE, rnd, bits, top, bottom, 0, NULL); in BN_priv_rand()
226 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_pseudo_rand() argument
228 return BN_rand(rnd, bits, top, bottom); in BN_pseudo_rand()