Home
last modified time | relevance | path

Searched refs:BN_RAND_TOP_ONE (Results 1 – 6 of 6) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/bn/
Dprime.c1038 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()
Drandom.c128 if (top != BN_RAND_TOP_ANY && top != BN_RAND_TOP_ONE && in BN_rand()
Dbn_test.cc1013 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/
Ddh.c349 if (!BN_rand(priv_key, priv_bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)) { in DH_generate_key()
/external/boringssl/src/include/openssl/
Dbn.h598 #define BN_RAND_TOP_ONE 0 macro
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa_impl.c1011 if (!BN_rand(out, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD) || in generate_prime()