diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/BN_rand.3 | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/src/lib/libcrypto/man/BN_rand.3 b/src/lib/libcrypto/man/BN_rand.3 index a0b1ab9f6c..b5966bcfa2 100644 --- a/src/lib/libcrypto/man/BN_rand.3 +++ b/src/lib/libcrypto/man/BN_rand.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: BN_rand.3,v 1.13 2018/12/22 00:03:51 schwarze Exp $ | 1 | .\" $OpenBSD: BN_rand.3,v 1.14 2018/12/24 10:07:22 schwarze Exp $ |
| 2 | .\" full merge up to: OpenSSL 05ea606a May 20 20:52:46 2016 -0400 | 2 | .\" full merge up to: OpenSSL 05ea606a May 20 20:52:46 2016 -0400 |
| 3 | .\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100 | 3 | .\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100 |
| 4 | .\" | 4 | .\" |
| @@ -50,13 +50,13 @@ | |||
| 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 52 | .\" | 52 | .\" |
| 53 | .Dd $Mdocdate: December 22 2018 $ | 53 | .Dd $Mdocdate: December 24 2018 $ |
| 54 | .Dt BN_RAND 3 | 54 | .Dt BN_RAND 3 |
| 55 | .Os | 55 | .Os |
| 56 | .Sh NAME | 56 | .Sh NAME |
| 57 | .Nm BN_rand , | 57 | .Nm BN_rand , |
| 58 | .Nm BN_pseudo_rand , | ||
| 59 | .Nm BN_rand_range , | 58 | .Nm BN_rand_range , |
| 59 | .Nm BN_pseudo_rand , | ||
| 60 | .Nm BN_pseudo_rand_range | 60 | .Nm BN_pseudo_rand_range |
| 61 | .Nd generate pseudo-random number | 61 | .Nd generate pseudo-random number |
| 62 | .Sh SYNOPSIS | 62 | .Sh SYNOPSIS |
| @@ -69,22 +69,10 @@ | |||
| 69 | .Fa "int bottom" | 69 | .Fa "int bottom" |
| 70 | .Fc | 70 | .Fc |
| 71 | .Ft int | 71 | .Ft int |
| 72 | .Fo BN_pseudo_rand | ||
| 73 | .Fa "BIGNUM *rnd" | ||
| 74 | .Fa "int bits" | ||
| 75 | .Fa "int top" | ||
| 76 | .Fa "int bottom" | ||
| 77 | .Fc | ||
| 78 | .Ft int | ||
| 79 | .Fo BN_rand_range | 72 | .Fo BN_rand_range |
| 80 | .Fa "BIGNUM *rnd" | 73 | .Fa "BIGNUM *rnd" |
| 81 | .Fa "BIGNUM *range" | 74 | .Fa "BIGNUM *range" |
| 82 | .Fc | 75 | .Fc |
| 83 | .Ft int | ||
| 84 | .Fo BN_pseudo_rand_range | ||
| 85 | .Fa "BIGNUM *rnd" | ||
| 86 | .Fa "BIGNUM *range" | ||
| 87 | .Fc | ||
| 88 | .Sh DESCRIPTION | 76 | .Sh DESCRIPTION |
| 89 | .Fn BN_rand | 77 | .Fn BN_rand |
| 90 | generates a cryptographically strong pseudo-random number of | 78 | generates a cryptographically strong pseudo-random number of |
| @@ -114,17 +102,18 @@ is +1 then | |||
| 114 | .Fa top | 102 | .Fa top |
| 115 | cannot also be 1. | 103 | cannot also be 1. |
| 116 | .Pp | 104 | .Pp |
| 117 | .Fn BN_pseudo_rand | ||
| 118 | is a deprecated alias for | ||
| 119 | .Fn BN_rand . | ||
| 120 | .Pp | ||
| 121 | .Fn BN_rand_range | 105 | .Fn BN_rand_range |
| 122 | generates a cryptographically strong pseudo-random number | 106 | generates a cryptographically strong pseudo-random number |
| 123 | .Fa rnd | 107 | .Fa rnd |
| 124 | in the range 0 <= | 108 | in the range 0 <= |
| 125 | .Fa rnd No < Fa range . | 109 | .Fa rnd No < Fa range . |
| 126 | .Fn BN_pseudo_rand_range | 110 | .Pp |
| 111 | .Fn BN_pseudo_rand | ||
| 127 | is a deprecated alias for | 112 | is a deprecated alias for |
| 113 | .Fn BN_rand , | ||
| 114 | and | ||
| 115 | .Fn BN_pseudo_rand_range | ||
| 116 | for | ||
| 128 | .Fn BN_rand_range . | 117 | .Fn BN_rand_range . |
| 129 | .Sh RETURN VALUES | 118 | .Sh RETURN VALUES |
| 130 | The functions return 1 on success, 0 on error. | 119 | The functions return 1 on success, 0 on error. |
| @@ -140,17 +129,9 @@ The error codes can be obtained by | |||
| 140 | first appeared in SSLeay 0.5.1 and has been available since | 129 | first appeared in SSLeay 0.5.1 and has been available since |
| 141 | .Ox 2.4 . | 130 | .Ox 2.4 . |
| 142 | .Pp | 131 | .Pp |
| 143 | .Fn BN_pseudo_rand | ||
| 144 | first appeared in OpenSSL 0.9.5 and has been available since | ||
| 145 | .Ox 2.7 . | ||
| 146 | .Pp | ||
| 147 | The | 132 | The |
| 148 | .Fa top | 133 | .Fa top |
| 149 | == -1 case and the function | 134 | == -1 case and the function |
| 150 | .Fn BN_rand_range | 135 | .Fn BN_rand_range |
| 151 | first appeared in OpenSSL 0.9.6a and have been available since | 136 | first appeared in OpenSSL 0.9.6a and have been available since |
| 152 | .Ox 3.0 . | 137 | .Ox 3.0 . |
| 153 | .Pp | ||
| 154 | .Fn BN_pseudo_rand_range | ||
| 155 | first appeared in OpenSSL 0.9.6c and have been available since | ||
| 156 | .Ox 3.2 . | ||
