Searched refs:BN_RAND_TOP_ONE (Results 1 – 6 of 6) sorted by relevance
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | prime.c | 1038 if (!BN_rand(rnd, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD)) { in probable_prime_dh() 1098 if (!BN_rand(q, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD)) { in probable_prime_dh_safe()
|
D | random.c | 128 if (top != BN_RAND_TOP_ANY && top != BN_RAND_TOP_ONE && in BN_rand()
|
D | bn_test.cc | 1013 BN_rand(n.get(), bytes * 8, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)); in TEST_F() 1069 BN_rand(x.get(), bytes * 8, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)); in TEST_F() 1245 static const int kTop[] = {BN_RAND_TOP_ANY, BN_RAND_TOP_ONE, BN_RAND_TOP_TWO}; in TEST_F() 1562 ASSERT_TRUE(BN_rand(a.get(), 1024, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)); in TEST_F()
|
/external/boringssl/src/crypto/dh/ |
D | dh.c | 349 if (!BN_rand(priv_key, priv_bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)) { in DH_generate_key()
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 598 #define BN_RAND_TOP_ONE 0 macro
|
/external/boringssl/src/crypto/fipsmodule/rsa/ |
D | rsa_impl.c | 1011 if (!BN_rand(out, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD) || in generate_prime()
|