diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/BN_bn2bin.3 | 70 |
1 files changed, 62 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/BN_bn2bin.3 b/src/lib/libcrypto/man/BN_bn2bin.3 index bf1c19ffd4..082ae6ee53 100644 --- a/src/lib/libcrypto/man/BN_bn2bin.3 +++ b/src/lib/libcrypto/man/BN_bn2bin.3 | |||
| @@ -1,6 +1,54 @@ | |||
| 1 | .\" $OpenBSD: BN_bn2bin.3,v 1.3 2016/11/08 22:19:45 jmc Exp $ | 1 | .\" $OpenBSD: BN_bn2bin.3,v 1.4 2016/11/20 16:30:22 schwarze Exp $ |
| 2 | .\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 | ||
| 2 | .\" | 3 | .\" |
| 3 | .Dd $Mdocdate: November 8 2016 $ | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. |
| 5 | .\" Copyright (c) 2000, 2002, 2016 The OpenSSL Project. All rights reserved. | ||
| 6 | .\" | ||
| 7 | .\" Redistribution and use in source and binary forms, with or without | ||
| 8 | .\" modification, are permitted provided that the following conditions | ||
| 9 | .\" are met: | ||
| 10 | .\" | ||
| 11 | .\" 1. Redistributions of source code must retain the above copyright | ||
| 12 | .\" notice, this list of conditions and the following disclaimer. | ||
| 13 | .\" | ||
| 14 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
| 15 | .\" notice, this list of conditions and the following disclaimer in | ||
| 16 | .\" the documentation and/or other materials provided with the | ||
| 17 | .\" distribution. | ||
| 18 | .\" | ||
| 19 | .\" 3. All advertising materials mentioning features or use of this | ||
| 20 | .\" software must display the following acknowledgment: | ||
| 21 | .\" "This product includes software developed by the OpenSSL Project | ||
| 22 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 23 | .\" | ||
| 24 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 25 | .\" endorse or promote products derived from this software without | ||
| 26 | .\" prior written permission. For written permission, please contact | ||
| 27 | .\" openssl-core@openssl.org. | ||
| 28 | .\" | ||
| 29 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
| 30 | .\" nor may "OpenSSL" appear in their names without prior written | ||
| 31 | .\" permission of the OpenSSL Project. | ||
| 32 | .\" | ||
| 33 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
| 34 | .\" acknowledgment: | ||
| 35 | .\" "This product includes software developed by the OpenSSL Project | ||
| 36 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 37 | .\" | ||
| 38 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 39 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 40 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 41 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 42 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 43 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 44 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 45 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 46 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 47 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 50 | .\" | ||
| 51 | .Dd $Mdocdate: November 20 2016 $ | ||
| 4 | .Dt BN_BN2BIN 3 | 52 | .Dt BN_BN2BIN 3 |
| 5 | .Os | 53 | .Os |
| 6 | .Sh NAME | 54 | .Sh NAME |
| @@ -106,11 +154,15 @@ The string must be freed later using | |||
| 106 | .Xr free 3 . | 154 | .Xr free 3 . |
| 107 | .Pp | 155 | .Pp |
| 108 | .Fn BN_hex2bn | 156 | .Fn BN_hex2bn |
| 109 | converts the string | 157 | interprets |
| 110 | .Fa str | 158 | .Fa str |
| 111 | containing a hexadecimal number to a | 159 | as a hexadecimal number. |
| 160 | The string may start with a minus sign | ||
| 161 | .Pq Sq - . | ||
| 162 | Conversion stops at the first byte that is not a hexadecimal digit. | ||
| 163 | The number is converted to a | ||
| 112 | .Vt BIGNUM | 164 | .Vt BIGNUM |
| 113 | and stores it in | 165 | and stored in |
| 114 | .Pf * Fa a . | 166 | .Pf * Fa a . |
| 115 | If | 167 | If |
| 116 | .Pf * Fa a | 168 | .Pf * Fa a |
| @@ -124,7 +176,7 @@ If | |||
| 124 | is | 176 | is |
| 125 | .Dv NULL , | 177 | .Dv NULL , |
| 126 | it only computes the number's length in hexadecimal digits. | 178 | it only computes the number's length in hexadecimal digits. |
| 127 | If the string starts with a minus sign, the number is negative. | 179 | A "negative zero" is converted to zero. |
| 128 | .Fn BN_dec2bn | 180 | .Fn BN_dec2bn |
| 129 | is the same using the decimal system. | 181 | is the same using the decimal system. |
| 130 | .Pp | 182 | .Pp |
| @@ -196,8 +248,10 @@ on error. | |||
| 196 | .Fn BN_hex2bn | 248 | .Fn BN_hex2bn |
| 197 | and | 249 | and |
| 198 | .Fn BN_dec2bn | 250 | .Fn BN_dec2bn |
| 199 | return the number's length in hexadecimal or decimal digits, and 0 on | 251 | return the number's length in hexadecimal or decimal digits |
| 200 | error. | 252 | or 0 on error, in which case no new |
| 253 | .Vt BIGNUM | ||
| 254 | will be created. | ||
| 201 | .Pp | 255 | .Pp |
| 202 | .Fn BN_print_fp | 256 | .Fn BN_print_fp |
| 203 | and | 257 | and |
