BN_rand.pod (1.1.1.5) | BN_rand.pod (1.1.1.6) |
---|---|
1=pod 2 3=head1 NAME 4 5BN_rand_ex, BN_rand, BN_priv_rand_ex, BN_priv_rand, BN_pseudo_rand, 6BN_rand_range_ex, BN_rand_range, BN_priv_rand_range_ex, BN_priv_rand_range, 7BN_pseudo_rand_range 8- generate pseudo-random number --- 45 unchanged lines hidden (view full) --- 54If I<bottom> is B<BN_RAND_BOTTOM_ODD>, the number will be odd; if it 55is B<BN_RAND_BOTTOM_ANY> it can be odd or even. 56If I<bits> is 1 then I<top> cannot also be B<BN_RAND_TOP_TWO>. 57 58BN_rand() is the same as BN_rand_ex() except that the default library context 59is always used. 60 61BN_rand_range_ex() generates a cryptographically strong pseudo-random | 1=pod 2 3=head1 NAME 4 5BN_rand_ex, BN_rand, BN_priv_rand_ex, BN_priv_rand, BN_pseudo_rand, 6BN_rand_range_ex, BN_rand_range, BN_priv_rand_range_ex, BN_priv_rand_range, 7BN_pseudo_rand_range 8- generate pseudo-random number --- 45 unchanged lines hidden (view full) --- 54If I<bottom> is B<BN_RAND_BOTTOM_ODD>, the number will be odd; if it 55is B<BN_RAND_BOTTOM_ANY> it can be odd or even. 56If I<bits> is 1 then I<top> cannot also be B<BN_RAND_TOP_TWO>. 57 58BN_rand() is the same as BN_rand_ex() except that the default library context 59is always used. 60 61BN_rand_range_ex() generates a cryptographically strong pseudo-random |
62number I | 62number I<rnd>, of security strength at least I<strength> bits, |
63in the range 0 E<lt>= I<rnd> E<lt> I<range> using the random number 64generator for the library context associated with I<ctx>. The parameter I<ctx> 65may be NULL in which case the default library context is used. 66 67BN_rand_range() is the same as BN_rand_range_ex() except that the default 68library context is always used. 69 70BN_priv_rand_ex(), BN_priv_rand(), BN_priv_rand_rand_ex() and --- 43 unchanged lines hidden (view full) --- 114 115The BN_rand_ex(), BN_priv_rand_ex(), BN_rand_range_ex() and 116BN_priv_rand_range_ex() functions were added in OpenSSL 3.0. 117 118=back 119 120=head1 COPYRIGHT 121 | 63in the range 0 E<lt>= I<rnd> E<lt> I<range> using the random number 64generator for the library context associated with I<ctx>. The parameter I<ctx> 65may be NULL in which case the default library context is used. 66 67BN_rand_range() is the same as BN_rand_range_ex() except that the default 68library context is always used. 69 70BN_priv_rand_ex(), BN_priv_rand(), BN_priv_rand_rand_ex() and --- 43 unchanged lines hidden (view full) --- 114 115The BN_rand_ex(), BN_priv_rand_ex(), BN_rand_range_ex() and 116BN_priv_rand_range_ex() functions were added in OpenSSL 3.0. 117 118=back 119 120=head1 COPYRIGHT 121 |
122Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. | 122Copyright 2000-2023 The OpenSSL Project Authors. All Rights Reserved. |
123 124Licensed under the Apache License 2.0 (the "License"). You may not use 125this file except in compliance with the License. You can obtain a copy 126in the file LICENSE in the source distribution or at 127L<https://www.openssl.org/source/license.html>. 128 129=cut | 123 124Licensed under the Apache License 2.0 (the "License"). You may not use 125this file except in compliance with the License. You can obtain a copy 126in the file LICENSE in the source distribution or at 127L<https://www.openssl.org/source/license.html>. 128 129=cut |