Home
last modified time | relevance | path

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

/freebsd/crypto/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()
277 BN_rand(a1, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
278 BN_rand(b1, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
279 BN_rand(m1, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD); in test_mod_exp_x2()
280 BN_rand(a2, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
281 BN_rand(b2, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY); in test_mod_exp_x2()
282 BN_rand(m2, factor_size, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD); in test_mod_exp_x2()
H A Dbntest.c749 if (!(TEST_true(BN_rand(a, 512, 0, 0)) in test_gf2m_add()
1880 if (!TEST_true(BN_rand(n, bytes * 8, TOP_BIT_ON, BOTTOM_BIT_NOTOUCH))) in test_bn2padded()
2356 if (!TEST_false(BN_rand(bn, 0, 0 /* top */, 0 /* bottom */)) in test_rand()
2357 || !TEST_false(BN_rand(bn, 0, 1 /* top */, 1 /* bottom */)) in test_rand()
2358 || !TEST_true(BN_rand(bn, 1, 0 /* top */, 0 /* bottom */)) in test_rand()
2360 || !TEST_false(BN_rand(bn, 1, 1 /* top */, 0 /* bottom */)) in test_rand()
2361 || !TEST_true(BN_rand(bn, 1, -1 /* top */, 1 /* bottom */)) in test_rand()
2363 || !TEST_true(BN_rand(bn, 2, 1 /* top */, 0 /* bottom */)) in test_rand()
H A Dectest.c560 || !TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in prime_field_tests()
569 || !TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in prime_field_tests()
879 if (!TEST_true(BN_rand(y, BN_num_bits(y), 0, 0)) in char2_curve_test()
890 if (!TEST_true(BN_rand(x, BN_num_bits(y) - 1, 0, 0)) in char2_curve_test()
3127 || !TEST_true(BN_rand(k, EC_GROUP_order_bits(group) - 1, in custom_generator_test()
3288 || !TEST_true(BN_rand(k, EC_GROUP_order_bits(group) - 1, in custom_params_test()
H A Dec_internal_test.c42 || !TEST_true(BN_rand(a, BN_num_bits(group->field) - 1, in group_field_tests()
/freebsd/crypto/openssl/doc/man3/
H A DBN_rand.pod5 BN_rand_ex, BN_rand, BN_priv_rand_ex, BN_priv_rand, BN_pseudo_rand,
16 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
58 BN_rand() is the same as BN_rand_ex() except that the default library context
71 BN_priv_rand_range() have the same semantics as BN_rand_ex(), BN_rand(),
103 to BN_rand() and BN_pseudo_rand_range() has been identical to
/freebsd/contrib/ntp/util/
H A Dntp-keygen.c1195 BN_rand(b, BN_num_bits(q), -1, 0); /* a */ in gen_iffkey()
1219 BN_rand(r, BN_num_bits(q), -1, 0); /* r */ in gen_iffkey()
1227 BN_rand(k, BN_num_bits(q), -1, 0); /* k, 0 < k < q */ in gen_iffkey()
1377 BN_rand(b, BN_num_bits(n), -1, 0); /* b */ in gen_gqkey()
1384 BN_rand(u, BN_num_bits(n), -1, 0); /* u */ in gen_gqkey()
1419 BN_rand(r, BN_num_bits(n), -1, 0); /* r */ in gen_gqkey()
1427 BN_rand(k, BN_num_bits(n), -1, 0); /* k */ in gen_gqkey()
1666 BN_rand(g, BN_num_bits(p) - 1, 0, 0); in gen_mvkey()
1692 BN_rand(x[j], BN_num_bits(q), 0, 0); in gen_mvkey()
1777 BN_rand( in gen_mvkey()
[all...]
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_rand.c108 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() function
231 return BN_rand(rnd, bits, top, bottom); in BN_pseudo_rand()
/freebsd/contrib/ntp/ntpd/
H A Dntp_crypto.c2188 BN_rand(peer->iffval, len * 8, -1, 1); /* r mod q*/ in crypto_alice()
2279 BN_rand(bk, len * 8, -1, 1); /* k */ in crypto_bob()
2526 BN_rand(peer->iffval, len * 8, -1, 1); /* r mod n */ in crypto_alice2()
2611 BN_rand(k, len * 8, -1, 1); /* k */ in crypto_bob2()
2868 BN_rand(peer->iffval, len * 8, -1, 1); /* r mod p */ in crypto_alice3()
2957 BN_rand(k, BN_num_bits(q), 0, 0); in crypto_bob3()
/freebsd/crypto/openssh/
H A Dmoduli.c287 if (BN_rand(largebase, power, 1, 1) == 0) in gen_candidates()
/freebsd/secure/lib/libcrypto/man/man3/
H A DMakefile75 MAN+= BN_rand.3
1210 MLINKS+= BN_rand.3 BN_priv_rand.3
1211 MLINKS+= BN_rand.3 BN_priv_rand_ex.3
1212 MLINKS+= BN_rand.3 BN_priv_rand_range.3
1213 MLINKS+= BN_rand.3 BN_priv_rand_range_ex.3
1214 MLINKS+= BN_rand.3 BN_pseudo_rand.3
1215 MLINKS+= BN_rand.3 BN_pseudo_rand_range.3
1216 MLINKS+= BN_rand.3 BN_rand_ex.3
1217 MLINKS+= BN_rand.3 BN_rand_range.3
1218 MLINKS+= BN_rand.3 BN_rand_range_ex.3
/freebsd/crypto/openssl/include/openssl/
H A Dbn.h218 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
/freebsd/crypto/openssl/doc/
H A Dbuild.info774 DEPEND[html/man3/BN_rand.html]=man3/BN_rand.pod
775 GENERATE[html/man3/BN_rand.html]=man3/BN_rand.pod
776 DEPEND[man/man3/BN_rand.3]=man3/BN_rand.pod
777 GENERATE[man/man3/BN_rand.3]=man3/BN_rand.pod
3261 html/man3/BN_rand.html \
3938 man/man3/BN_rand.3 \
/freebsd/crypto/openssl/apps/lib/
H A Dapps.c1652 if (!BN_rand(btmp, SERIAL_RAND_BITS, BN_RAND_TOP_ANY, BN_RAND_BOTTOM_ANY)) in rand_serial()
/freebsd/secure/lib/libcrypto/
H A DVersion.map562 BN_rand;
/freebsd/crypto/openssl/doc/man7/
H A Dossl-guide-migration.pod1270 Use L<BN_rand(3)> and L<BN_rand_range(3)>.
/freebsd/crypto/openssl/util/
H A Dlibcrypto.num2956 BN_rand 3023 3_0_0 EXIST::FUNCTION:
/freebsd/crypto/openssl/
H A DCHANGES.md17057 equivalent based on BN_pseudo_rand() instead of BN_rand().
17128 BN_rand(priv_key, l, ...)
18568 * In bntest.c don't call BN_rand with zero bits argument.