summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2017-01-25 16:12:45 +0000
committerschwarze <>2017-01-25 16:12:45 +0000
commita4e2d8d4f9d9c0a8b0611bed6a667b8f0d4dabde (patch)
tree6c178ec3d0e8d5fa07d2e9a93eb4966b43b4bb7b /src
parent2471697fd700a54a4b8b7922d15497e013e52aeb (diff)
downloadopenbsd-a4e2d8d4f9d9c0a8b0611bed6a667b8f0d4dabde.tar.gz
openbsd-a4e2d8d4f9d9c0a8b0611bed6a667b8f0d4dabde.tar.bz2
openbsd-a4e2d8d4f9d9c0a8b0611bed6a667b8f0d4dabde.zip
document BN_asc2bn(3);
jsing@ confirmed that it is a public function worth documenting
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BN_bn2bin.330
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.
179A "negative zero" is converted to zero. 185A "negative zero" is converted to zero.
180.Fn BN_dec2bn 186.Fn BN_dec2bn
181is the same using the decimal system. 187is the same using the decimal system.
188.Fn BN_asc2bn
189infers the number base from an optional prefix.
190If
191.Fa str
192starts with
193.Qq 0x
194or
195.Qq 0X ,
196it calls
197.Fn BN_hex2bn ,
198otherwise
199.Fn BN_dec2bn .
200If the number is negative, the minus sign can be given before or
201after the prefix.
182.Pp 202.Pp
183.Fn BN_print 203.Fn BN_print
184and 204and
@@ -251,7 +271,11 @@ and
251return the number's length in hexadecimal or decimal digits 271return the number's length in hexadecimal or decimal digits
252or 0 on error, in which case no new 272or 0 on error, in which case no new
253.Vt BIGNUM 273.Vt BIGNUM
254will be created. 274is created.
275.Fn BN_asc2bn
276returns 1 on success or 0 on error, in which case no new
277.Vt BIGNUM
278is created.
255.Pp 279.Pp
256.Fn BN_print_fp 280.Fn BN_print_fp
257and 281and