Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 10 of 10) sorted by relevance

/openssl-master/crypto/bn/
A Dbn_prime.c489 if (safe && !BN_set_bit(rnd, 1)) in probable_prime()
519 if (!BN_add_word(rnd, delta)) in probable_prime()
521 if (BN_num_bits(rnd) != bits) in probable_prime()
523 bn_check_top(rnd); in probable_prime()
558 if (!BN_mod(t1, rnd, add, ctx)) in probable_prime_dh()
560 if (!BN_sub(rnd, rnd, t1)) in probable_prime_dh()
566 if (!BN_add(rnd, rnd, rem)) in probable_prime_dh()
570 if (BN_num_bits(rnd) < bits in probable_prime_dh()
572 if (!BN_add(rnd, rnd, add)) in probable_prime_dh()
599 if (!BN_add_word(rnd, delta)) in probable_prime_dh()
[all …]
A Dbn_rand.c33 BN_zero(rnd); in bnrand()
89 if (!BN_bin2bn(buf, bytes, rnd)) in bnrand()
94 bn_check_top(rnd); in bnrand()
102 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom, in BN_rand_ex() argument
108 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() argument
110 return bnrand(NORMAL, rnd, bits, top, bottom, 0, NULL); in BN_rand()
113 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_bntest_rand() argument
115 return bnrand(TESTING, rnd, bits, top, bottom, 0, NULL); in BN_bntest_rand()
126 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_priv_rand() argument
128 return bnrand(PRIVATE, rnd, bits, top, bottom, 0, NULL); in BN_priv_rand()
[all …]
A Dbn_depr.c27 BIGNUM *rnd = NULL; in BN_generate_prime() local
32 if ((rnd = BN_new()) == NULL) in BN_generate_prime()
35 rnd = ret; in BN_generate_prime()
36 if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) in BN_generate_prime()
40 return rnd; in BN_generate_prime()
42 BN_free(rnd); in BN_generate_prime()
/openssl-master/doc/man3/
A DBN_rand.pod14 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
16 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
18 int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
20 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom);
22 int BN_rand_range_ex(BIGNUM *rnd, const BIGNUM *range, unsigned int strength,
24 int BN_rand_range(BIGNUM *rnd, const BIGNUM *range);
28 int BN_priv_rand_range(BIGNUM *rnd, const BIGNUM *range);
34 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);
35 int BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range);
62 number I<rnd>, of security stength at least I<strength> bits,
[all …]
A DRAND_load_file.pod41 Otherwise, the file is called C<.rnd>, found in platform dependent locations:
/openssl-master/crypto/camellia/asm/
A Dcmll-x86.pl480 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_;
482 $rnd *= 2;
500 my ($i0,$i1,$i2,$i3,$rot,$rnd,@T)=@_;
502 $rnd *= 2;
533 my ($rnd,$key,@T)=@_;
536 &mov (&DWP($bias+$rnd*8+0,$key),@T[0]);
537 &mov (&DWP($bias+$rnd*8+4,$key),@T[1]) if ($#T>=1);
538 &mov (&DWP($bias+$rnd*8+8,$key),@T[2]) if ($#T>=2);
543 my ($rnd,$key,@T)=@_;
546 &mov (@T[0],&DWP($bias+$rnd*8+0,$key));
[all …]
A Dcmll-x86_64.pl382 my ($rnd,$key,@T)=@_;
387 mov @T[1],`$bias+$rnd*8+0`($key)
388 mov @T[0],`$bias+$rnd*8+4`($key)
389 mov @T[3],`$bias+$rnd*8+8`($key)
390 mov @T[2],`$bias+$rnd*8+12`($key)
393 $code.=" mov @T[0],`$bias+$rnd*8+0`($key)\n";
394 $code.=" mov @T[1],`$bias+$rnd*8+8`($key)\n" if ($#T>=1);
399 my ($rnd,$key,@T)=@_;
402 $code.=" mov `$bias+$rnd*8+0`($key),@T[0]\n";
403 $code.=" mov `$bias+$rnd*8+8`($key),@T[1]\n" if ($#T>=1);
/openssl-master/include/openssl/
A Dbn.h217 int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
219 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
220 int BN_priv_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,
222 int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom);
225 int BN_rand_range(BIGNUM *rnd, const BIGNUM *range);
228 int BN_priv_rand_range(BIGNUM *rnd, const BIGNUM *range);
231 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);
233 int BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range);
577 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);
/openssl-master/ssl/
A Dtls_srp.c421 unsigned char rnd[SSL_MAX_MASTER_KEY_LENGTH]; in ssl_srp_calc_a_param_intern() local
423 if (RAND_priv_bytes_ex(s->ctx->libctx, rnd, sizeof(rnd), 0) <= 0) in ssl_srp_calc_a_param_intern()
425 s->srp_ctx.a = BN_bin2bn(rnd, sizeof(rnd), s->srp_ctx.a); in ssl_srp_calc_a_param_intern()
426 OPENSSL_cleanse(rnd, sizeof(rnd)); in ssl_srp_calc_a_param_intern()
/openssl-master/
A DCHANGES.md14511 * In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd"

Completed in 44 milliseconds