Searched refs:BN_rand (Results 1 – 6 of 6) sorted by relevance
/external/boringssl/src/crypto/bn/ |
D | bn_test.cc | 344 if (!a || !b || !c || !BN_rand(a.get(), 512, 0, 0)) { in test_add() 349 if (!BN_rand(b.get(), 450 + i, 0, 0)) { in test_add() 389 if (!BN_rand(a.get(), 512, 0, 0) || in test_sub() 396 if (!BN_rand(b.get(), 400 + i - num1, 0, 0)) { in test_sub() 447 if (!BN_rand(a.get(), 400, 0, 0) || in test_div() 453 } else if (!BN_rand(b.get(), 50 + 3 * (i - num1), 0, 0)) { in test_div() 520 if (!a || !b || !c || !BN_rand(a.get(), 200, 0, 0)) { in test_lshift1() 558 !BN_rand(a.get(), 200, 0, 0)) { in test_rshift() 591 if (!a || !b || !c || !BN_rand(a.get(), 200, 0, 0)) { in test_rshift1() 625 if (!a || !BN_rand(a.get(), 200, 0, 0)) { in test_lshift() [all …]
|
D | random.c | 118 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) { in BN_rand() function 181 return BN_rand(rnd, bits, top, bottom); in BN_pseudo_rand() 202 if (!BN_rand(r, n + 1, -1 /* don't set most significant bits */, in BN_rand_range() 229 if (!BN_rand(r, n, -1, 0)) { in BN_rand_range()
|
D | prime.c | 650 if (!BN_rand(rnd, bits, 1, 1)) { in probable_prime() 730 if (!BN_rand(rnd, bits, 0, 1)) { in probable_prime_dh() 789 if (!BN_rand(q, bits, 0, 1)) { in probable_prime_dh_safe()
|
/external/boringssl/src/crypto/dh/ |
D | dh.c | 289 if (!BN_rand(priv_key, l, 0, 0)) { in DH_generate_key()
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 579 OPENSSL_EXPORT int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
|
/external/ipsec-tools/src/racoon/ |
D | crypto_openssl.c | 2445 BN_rand(r, size * 8, 0, 0);
|