A D | bn_rand.c | 33 BN_zero(rnd); in bnrand() 89 if (!BN_bin2bn(buf, bytes, rnd)) in bnrand() 94 bn_check_top(rnd); in bnrand() 102 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, in BN_rand_ex() argument 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() 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() [all …]
|