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

12

/macosx-10.10.1/OpenSSL098-52/src/crypto/bn/
H A Dexp.c33 BN_rand(&a,size,0,0);
34 BN_rand(&b,size,1,0);
35 BN_rand(&c,size,0,1);
H A Dbnspeed.c193 BN_rand(a,sizes[i],1,0);
196 BN_rand(b,sizes[j],1,0);
209 BN_rand(a,sizes[i],1,0);
221 BN_rand(a,sizes[i]-1,1,0);
224 BN_rand(b,sizes[j],1,0);
H A Dbn_x931p.c210 if (!BN_rand(Xp, nbits, 1, 0))
218 if (!BN_rand(Xq, nbits, 1, 0))
257 if (!BN_rand(Xp1, 101, 0, 0))
259 if (!BN_rand(Xp2, 101, 0, 0))
H A Dexptest.c82 RAND_seed(rnd_seed, sizeof rnd_seed); /* or BN_rand may fail, and we don't
110 BN_rand(a,NUM_BITS+c,0,0);
114 BN_rand(b,NUM_BITS+c,0,0);
118 BN_rand(m,NUM_BITS+c,0,1);
H A Dbn_rand.c211 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) function
232 int (*bn_rand)(BIGNUM *, int, int, int) = pseudo ? BN_pseudo_rand : BN_rand;
H A Dbn_prime.c384 if (!BN_rand(rnd,bits,1,1)) return(0);
415 if (!BN_rand(rnd,bits,0,1)) goto err;
459 if (!BN_rand(q,bits,0,1)) goto err;
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_apple_csp/open_ssl/bn/
H A Dexp.c51 BN_rand(&a,size,0,0);
52 BN_rand(&b,size,1,0);
53 BN_rand(&c,size,0,1);
H A Dbnspeed.c211 BN_rand(a,sizes[i],1,0);
214 BN_rand(b,sizes[j],1,0);
227 BN_rand(a,sizes[i],1,0);
239 BN_rand(a,sizes[i]-1,1,0);
242 BN_rand(b,sizes[j],1,0);
H A Dbntest.c143 RAND_seed(rnd_seed, sizeof rnd_seed); /* or BN_rand may fail, and we don't
274 BN_rand(&a,512,0,0);
277 BN_rand(&b,450+i,0,0);
326 BN_rand(&a,512,0,0);
333 BN_rand(&b,400+i-num1,0,0);
383 BN_rand(&a,400,0,0);
389 BN_rand(&b,50+3*(i-num1),0,0);
453 BN_rand(&a,400,0,0);
459 BN_rand(&b,50+3*(i-num1),0,0);
530 BN_rand(
[all...]
H A Dbn_rand.c157 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) function
196 if (!BN_rand(r, n, -1, 0)) return 0;
206 if (!BN_rand(r, n + 1, -1, 0)) return 0;
H A Dexpspeed.c215 BN_rand(a,sizes[i],1,0);
216 BN_rand(b,sizes[i],1,0);
217 BN_rand(c,sizes[i],1,1);
H A Dexptest.c100 RAND_seed(rnd_seed, sizeof rnd_seed); /* or BN_rand may fail, and we don't
127 BN_rand(a,NUM_BITS+c,0,0);
131 BN_rand(b,NUM_BITS+c,0,0);
135 BN_rand(m,NUM_BITS+c,0,1);
H A Dbn_prime.c373 if (!BN_rand(rnd,bits,1,1)) return(0);
406 if (!BN_rand(rnd,bits,0,1)) goto err;
449 if (!BN_rand(q,bits,0,1)) goto err;
/macosx-10.10.1/Heimdal-398.1.2/lib/hcrypto/
H A Dbn.h60 #define BN_rand hc_BN_rand macro
121 int BN_rand(BIGNUM *, int, int, int);
H A Ddh-ltm.c105 if (!BN_rand(dh->priv_key, bits - 1, 0, 0)) {
H A Ddh-tfm.c105 if (!BN_rand(dh->priv_key, bits - 1, 0, 0)) {
H A Dtest_bn.c332 if (!BN_rand(bn, 1024, 0, 0))
/macosx-10.10.1/OpenSSL098-52/src/test/
H A Dexptest.c82 RAND_seed(rnd_seed, sizeof rnd_seed); /* or BN_rand may fail, and we don't
110 BN_rand(a,NUM_BITS+c,0,0);
114 BN_rand(b,NUM_BITS+c,0,0);
118 BN_rand(m,NUM_BITS+c,0,1);
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_apple_csp/open_ssl/dsa/
H A Ddsa_key.c104 if (!BN_rand(priv_key,i,1,0))
/macosx-10.10.1/OpenSSH-189/osslshim/ossl/
H A Dossl-dh-eay.c158 if (!BN_rand(priv_key, l, 0, 0)) {
H A Dossl-bn.h125 #define BN_rand ossl_BN_rand macro
355 int BN_rand(BIGNUM *, int, int, int);
/macosx-10.10.1/OpenSSL098-52/src/crypto/jpake/
H A Djpaketest.c150 BN_rand(secret, 32, -1, 0);
/macosx-10.10.1/ntp-92/util/
H A Dntp-keygen.c1029 BN_rand(b, BN_num_bits(dsa->q), -1, 0); /* a */
1052 BN_rand(r, BN_num_bits(dsa->q), -1, 0); /* r */
1060 BN_rand(k, BN_num_bits(dsa->q), -1, 0); /* k, 0 < k < q */
1206 BN_rand(rsa->e, BN_num_bits(rsa->n), -1, 0); /* b */
1213 BN_rand(u, BN_num_bits(rsa->n), -1, 0); /* u */
1245 BN_rand(r, BN_num_bits(rsa->n), -1, 0); /* r */
1253 BN_rand(k, BN_num_bits(rsa->n), -1, 0); /* k */
1493 BN_rand(dsa->g, BN_num_bits(dsa->p) - 1, 0, 0);
1517 BN_rand(x[j], BN_num_bits(dsa->q), 0, 0);
1604 BN_rand(
[all...]
/macosx-10.10.1/OpenSSH-189/openssh/
H A Dauth-rsa.c84 if (BN_rand(challenge, 256, 0, 0) == 0)
85 fatal("auth_rsa_generate_challenge: BN_rand failed");
H A Ddh.c257 if (!BN_rand(dh->priv_key, 2*need, 0, 0))
258 fatal("dh_gen_key: BN_rand failed");

Completed in 235 milliseconds

12