diff options
| author | schwarze <> | 2017-01-25 16:12:45 +0000 |
|---|---|---|
| committer | schwarze <> | 2017-01-25 16:12:45 +0000 |
| commit | 8663592b37fb4ff99769965286777666cc7f480c (patch) | |
| tree | 6c178ec3d0e8d5fa07d2e9a93eb4966b43b4bb7b | |
| parent | 7633b4c2cadb89b38e7f3601ba42f32b7a901ceb (diff) | |
| download | openbsd-8663592b37fb4ff99769965286777666cc7f480c.tar.gz openbsd-8663592b37fb4ff99769965286777666cc7f480c.tar.bz2 openbsd-8663592b37fb4ff99769965286777666cc7f480c.zip | |
document BN_asc2bn(3);
jsing@ confirmed that it is a public function worth documenting
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/BN_bn2bin.3 | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/BN_bn2bin.3 b/src/lib/libcrypto/man/BN_bn2bin.3 index 01a33c9ac4..2ff597a557 100644 --- a/src/lib/libcrypto/man/BN_bn2bin.3 +++ b/src/lib/libcrypto/man/BN_bn2bin.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: BN_bn2bin.3,v 1.5 2016/12/10 21:13:25 schwarze Exp $ | 1 | .\" $OpenBSD: BN_bn2bin.3,v 1.6 2017/01/25 16:12:45 schwarze Exp $ |
| 2 | .\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 | 2 | .\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. |
| @@ -48,7 +48,7 @@ | |||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 50 | .\" | 50 | .\" |
| 51 | .Dd $Mdocdate: December 10 2016 $ | 51 | .Dd $Mdocdate: January 25 2017 $ |
| 52 | .Dt BN_BN2BIN 3 | 52 | .Dt BN_BN2BIN 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -58,6 +58,7 @@ | |||
| 58 | .Nm BN_bn2dec , | 58 | .Nm BN_bn2dec , |
| 59 | .Nm BN_hex2bn , | 59 | .Nm BN_hex2bn , |
| 60 | .Nm BN_dec2bn , | 60 | .Nm BN_dec2bn , |
| 61 | .Nm BN_asc2bn , | ||
| 61 | .Nm BN_print , | 62 | .Nm BN_print , |
| 62 | .Nm BN_print_fp , | 63 | .Nm BN_print_fp , |
| 63 | .Nm BN_bn2mpi , | 64 | .Nm BN_bn2mpi , |
| @@ -95,6 +96,11 @@ | |||
| 95 | .Fa "const char *str" | 96 | .Fa "const char *str" |
| 96 | .Fc | 97 | .Fc |
| 97 | .Ft int | 98 | .Ft int |
| 99 | .Fo BN_asc2bn | ||
| 100 | .Fa "BIGNUM **a" | ||
| 101 | .Fa "const char *str" | ||
| 102 | .Fc | ||
| 103 | .Ft int | ||
| 98 | .Fo BN_print | 104 | .Fo BN_print |
| 99 | .Fa "BIO *fp" | 105 | .Fa "BIO *fp" |
| 100 | .Fa "const BIGNUM *a" | 106 | .Fa "const BIGNUM *a" |
| @@ -179,6 +185,20 @@ it only computes the number's length in hexadecimal digits. | |||
| 179 | A "negative zero" is converted to zero. | 185 | A "negative zero" is converted to zero. |
| 180 | .Fn BN_dec2bn | 186 | .Fn BN_dec2bn |
| 181 | is the same using the decimal system. | 187 | is the same using the decimal system. |
| 188 | .Fn BN_asc2bn | ||
| 189 | infers the number base from an optional prefix. | ||
| 190 | If | ||
| 191 | .Fa str | ||
| 192 | starts with | ||
| 193 | .Qq 0x | ||
| 194 | or | ||
| 195 | .Qq 0X , | ||
| 196 | it calls | ||
| 197 | .Fn BN_hex2bn , | ||
| 198 | otherwise | ||
| 199 | .Fn BN_dec2bn . | ||
| 200 | If the number is negative, the minus sign can be given before or | ||
| 201 | after the prefix. | ||
| 182 | .Pp | 202 | .Pp |
| 183 | .Fn BN_print | 203 | .Fn BN_print |
| 184 | and | 204 | and |
| @@ -251,7 +271,11 @@ and | |||
| 251 | return the number's length in hexadecimal or decimal digits | 271 | return the number's length in hexadecimal or decimal digits |
| 252 | or 0 on error, in which case no new | 272 | or 0 on error, in which case no new |
| 253 | .Vt BIGNUM | 273 | .Vt BIGNUM |
| 254 | will be created. | 274 | is created. |
| 275 | .Fn BN_asc2bn | ||
| 276 | returns 1 on success or 0 on error, in which case no new | ||
| 277 | .Vt BIGNUM | ||
| 278 | is created. | ||
| 255 | .Pp | 279 | .Pp |
| 256 | .Fn BN_print_fp | 280 | .Fn BN_print_fp |
| 257 | and | 281 | and |
