Home
last modified time | relevance | path

Searched refs:BN_rand (Results 1 - 15 of 15) sorted by relevance

/third_party/openssl/test/
H A Dexptest.c65 if (!TEST_true(BN_rand(a, 1024, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY))) in test_mod_exp_zero()
179 if (!TEST_true(BN_rand(a, NUM_BITS + c, BN_RAND_TOP_ONE, in test_mod_exp()
186 if (!TEST_true(BN_rand(b, NUM_BITS + c, BN_RAND_TOP_ONE, in test_mod_exp()
193 if (!TEST_true(BN_rand(m, NUM_BITS + c, BN_RAND_TOP_ONE, in test_mod_exp()
276 BN_rand(a1, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
277 BN_rand(b1, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
278 BN_rand(m1, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD); in test_mod_exp_x2()
279 BN_rand(a2, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
280 BN_rand(b2, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
281 BN_rand(m in test_mod_exp_x2()
[all...]
H A Dbntest.c727 if (!(TEST_true(BN_rand(a, 512, 0, 0)) in test_gf2m_add()
1804 if (!TEST_true(BN_rand(n, bytes * 8, TOP_BIT_ON, BOTTOM_BIT_NOTOUCH))) in test_bn2padded()
2080 /* Test BN_rand for degenerate cases with |top| and |bottom| parameters. */ in test_rand()
2081 if (!TEST_false(BN_rand(bn, 0, 0 /* top */ , 0 /* bottom */ )) in test_rand()
2082 || !TEST_false(BN_rand(bn, 0, 1 /* top */ , 1 /* bottom */ )) in test_rand()
2083 || !TEST_true(BN_rand(bn, 1, 0 /* top */ , 0 /* bottom */ )) in test_rand()
2085 || !TEST_false(BN_rand(bn, 1, 1 /* top */ , 0 /* bottom */ )) in test_rand()
2086 || !TEST_true(BN_rand(bn, 1, -1 /* top */ , 1 /* bottom */ )) in test_rand()
2088 || !TEST_true(BN_rand(bn, 2, 1 /* top */ , 0 /* bottom */ )) in test_rand()
H A Dectest.c562 || !TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in prime_field_tests()
571 || !TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in prime_field_tests()
891 if (!TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in char2_curve_test()
902 if (!TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in char2_curve_test()
2637 || !TEST_true(BN_rand(k, EC_GROUP_order_bits(group) - 1, in custom_generator_test()
2794 || !TEST_true(BN_rand(k, EC_GROUP_order_bits(group) - 1, in custom_params_test()
H A Dec_internal_test.c41 || !TEST_true(BN_rand(a, BN_num_bits(group->field) - 1, in group_field_tests()
/third_party/node/deps/openssl/openssl/crypto/bn/
H A Dbn_rand.c108 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() function
233 return BN_rand(rnd, bits, top, bottom); in BN_pseudo_rand()
/third_party/openssl/crypto/bn/
H A Dbn_rand.c108 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() function
233 return BN_rand(rnd, bits, top, bottom); in BN_pseudo_rand()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
H A Dbn.rs9 pub fn BN_rand(r: *mut BIGNUM, bits: c_int, top: c_int, bottom: c_int) -> c_int; in BN_rand() functions
/third_party/ffmpeg/libavformat/
H A Drtmpdh.c154 #define bn_random(bn, num_bits) BN_rand(bn, num_bits, 0, 0)
/third_party/rust/crates/rust-openssl/openssl/src/
H A Dbn.rs388 #[corresponds(BN_rand)]
392 cvt(ffi::BN_rand( in rand()
/third_party/openssl/ohos_lite/include/openssl/
H A Dbn.h73 /* Values for |top| in BN_rand() */
78 /* Values for |bottom| in BN_rand() */
207 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
/third_party/node/deps/openssl/openssl/include/openssl/
H A Dbn.h79 /* Values for |top| in BN_rand() */
84 /* Values for |bottom| in BN_rand() */
219 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
/third_party/openssl/include/openssl/
H A Dbn.h79 /* Values for |top| in BN_rand() */
84 /* Values for |bottom| in BN_rand() */
219 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dapps.c1621 if (!BN_rand(btmp, SERIAL_RAND_BITS, BN_RAND_TOP_ANY, BN_RAND_BOTTOM_ANY)) in rand_serial()
/third_party/openssl/apps/lib/
H A Dapps.c1619 if (!BN_rand(btmp, SERIAL_RAND_BITS, BN_RAND_TOP_ANY, BN_RAND_BOTTOM_ANY)) in rand_serial()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
H A 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()

Completed in 40 milliseconds