Home
last modified time | relevance | path

Searched refs:BN_rand (Results 1 – 14 of 14) sorted by relevance

/third_party/openssl/doc/man3/
DBN_rand.pod5 BN_rand, BN_priv_rand, BN_pseudo_rand,
13 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
27 BN_rand() generates a cryptographically strong pseudo-random number of
47 BN_rand() and BN_rand_range() respectively. They are intended to be
78 to BN_rand() and BN_pseudo_rand_range() has been identical to
/third_party/openssl/test/
Dexptest.c64 if (!TEST_true(BN_rand(a, 1024, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY))) in test_mod_exp_zero()
149 BN_rand(a, NUM_BITS + c, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp()
153 BN_rand(b, NUM_BITS + c, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp()
157 BN_rand(m, NUM_BITS + c, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD); in test_mod_exp()
Dbntest.c731 if (!(TEST_true(BN_rand(a, 512, 0, 0)) in test_gf2m_add()
1808 if (!TEST_true(BN_rand(n, bytes * 8, TOP_BIT_ON, BOTTOM_BIT_NOTOUCH))) in test_bn2padded()
2085 if (!TEST_false(BN_rand(bn, 0, 0 /* top */ , 0 /* bottom */ )) in test_rand()
2086 || !TEST_false(BN_rand(bn, 0, 1 /* top */ , 1 /* bottom */ )) in test_rand()
2087 || !TEST_true(BN_rand(bn, 1, 0 /* top */ , 0 /* bottom */ )) in test_rand()
2089 || !TEST_false(BN_rand(bn, 1, 1 /* top */ , 0 /* bottom */ )) in test_rand()
2090 || !TEST_true(BN_rand(bn, 1, -1 /* top */ , 1 /* bottom */ )) in test_rand()
2092 || !TEST_true(BN_rand(bn, 2, 1 /* top */ , 0 /* bottom */ )) in test_rand()
Dectest.c579 || !TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in prime_field_tests()
588 || !TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in prime_field_tests()
919 if (!TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in char2_curve_test()
930 if (!TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in char2_curve_test()
2180 || !TEST_true(BN_rand(k, EC_GROUP_order_bits(group) - 1, in custom_generator_test()
/third_party/openssl/crypto/bn/
Dbn_rand.c97 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() function
189 return BN_rand(rnd, bits, top, bottom); in BN_pseudo_rand()
Dbn_prime.c337 if (!BN_rand(rnd, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD)) in probable_prime_dh()
/third_party/ffmpeg/libavformat/
Drtmpdh.c154 #define bn_random(bn, num_bits) BN_rand(bn, num_bits, 0, 0)
/third_party/openssl/include/openssl/
Dbn.h207 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
/third_party/openssl/apps/
Dapps.c1524 if (!BN_rand(btmp, SERIAL_RAND_BITS, BN_RAND_TOP_ANY, BN_RAND_BOTTOM_ANY)) in rand_serial()
/third_party/grpc/src/boringssl/
Dboringssl_prefix_symbols.h973 #define BN_rand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_rand) macro
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Ddpp.c6849 if (BN_rand(x, curve->prime_len * 8, 0, 0) != 1) in dpp_test_gen_invalid_key()
6855 if (BN_rand(y, curve->prime_len * 8, 0, 0) != 1) in dpp_test_gen_invalid_key()
/third_party/openssl/crypto/err/
Dopenssl.txt228 BN_F_BN_RAND:114:BN_rand
/third_party/openssl/util/
Dlibcrypto.num3068 BN_rand 3023 1_1_0 EXIST::FUNCTION:
/third_party/openssl/
DCHANGES9830 equivalent based on BN_pseudo_rand() instead of BN_rand().
9892 BN_rand(priv_key, l, ...)
11139 *) In bntest.c don't call BN_rand with zero bits argument.