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

/external/boringssl/src/crypto/bn/
H A Drandom.c118 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) { function
181 return BN_rand(rnd, bits, top, bottom);
202 if (!BN_rand(r, n + 1, -1 /* don't set most significant bits */,
229 if (!BN_rand(r, n, -1, 0)) {
H A Dbn_test.cc351 if (!a || !b || !c || !BN_rand(a.get(), 512, 0, 0)) {
356 if (!BN_rand(b.get(), 450 + i, 0, 0)) {
396 if (!BN_rand(a.get(), 512, 0, 0) ||
403 if (!BN_rand(b.get(), 400 + i - num1, 0, 0)) {
454 if (!BN_rand(a.get(), 400, 0, 0) ||
460 } else if (!BN_rand(b.get(), 50 + 3 * (i - num1), 0, 0)) {
527 if (!a || !b || !c || !BN_rand(a.get(), 200, 0, 0)) {
565 !BN_rand(a.get(), 200, 0, 0)) {
598 if (!a || !b || !c || !BN_rand(a.get(), 200, 0, 0)) {
632 if (!a || !BN_rand(
[all...]
H A Dprime.c650 if (!BN_rand(rnd, bits, 1, 1)) {
730 if (!BN_rand(rnd, bits, 0, 1)) {
789 if (!BN_rand(q, bits, 0, 1)) {
/external/openssh/
H A Dauth-rsa.c82 if (BN_rand(challenge, 256, 0, 0) == 0)
83 fatal("auth_rsa_generate_challenge: BN_rand failed");
H A Dmoduli.c331 if (BN_rand(largebase, power, 1, 1) == 0)
332 fatal("BN_rand failed");
/external/boringssl/src/crypto/dh/
H A Ddh.c289 if (!BN_rand(priv_key, l, 0, 0)) {
/external/boringssl/include/openssl/
H A Dbn.h570 /* BN_rand sets |rnd| to a random number of length |bits|. If |top| is zero, the
579 OPENSSL_EXPORT int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
581 /* BN_pseudo_rand is an alias for |BN_rand|. */
/external/boringssl/src/include/openssl/
H A Dbn.h570 /* BN_rand sets |rnd| to a random number of length |bits|. If |top| is zero, the
579 OPENSSL_EXPORT int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
581 /* BN_pseudo_rand is an alias for |BN_rand|. */
/external/ipsec-tools/src/racoon/
H A Dcrypto_openssl.c2445 BN_rand(r, size * 8, 0, 0);

Completed in 166 milliseconds