D | bn_rand.c | 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() 87 if (bottom) /* set bottom bit if requested */ 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 [all …]
|