summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BN_new.3
diff options
context:
space:
mode:
authorschwarze <>2016-12-10 21:17:09 +0000
committerschwarze <>2016-12-10 21:17:09 +0000
commit69fb7c59b8a8aa94efa86b74c20890ecce0af5d6 (patch)
treef4257751043a8acf8ab4e72c4d4af1f71916a83c /src/lib/libcrypto/man/BN_new.3
parent16f02ee21b68c18a3f651a3b1f9194c7810002d3 (diff)
downloadopenbsd-69fb7c59b8a8aa94efa86b74c20890ecce0af5d6.tar.gz
openbsd-69fb7c59b8a8aa94efa86b74c20890ecce0af5d6.tar.bz2
openbsd-69fb7c59b8a8aa94efa86b74c20890ecce0af5d6.zip
Merge bn(3) into BN_new(3).
OpenSSL removed bn(3) without replacement, but the introductory text does seem helpful, and it is good for a sub-library to have a central page pointing to all other pages and pointed at from all other pages of the sub-library.
Diffstat (limited to 'src/lib/libcrypto/man/BN_new.3')
-rw-r--r--src/lib/libcrypto/man/BN_new.344
1 files changed, 40 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/BN_new.3 b/src/lib/libcrypto/man/BN_new.3
index 2a3ce2f453..04cd1dbc2e 100644
--- a/src/lib/libcrypto/man/BN_new.3
+++ b/src/lib/libcrypto/man/BN_new.3
@@ -1,5 +1,6 @@
1.\" $OpenBSD: BN_new.3,v 1.4 2016/11/20 17:47:18 schwarze Exp $ 1.\" $OpenBSD: BN_new.3,v 1.5 2016/12/10 21:17:09 schwarze Exp $
2.\" OpenSSL 2457c19d Mar 6 08:43:36 2004 +0000 2.\" OpenSSL doc/man3/BN_new.pod 2457c19d Mar 6 08:43:36 2004 +0000
3.\" OpenSSL doc/man7/bn.pod 05ea606a May 20 20:52:46 2016 -0400
3.\" 4.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org>. 5.\" This file was written by Ulf Moeller <ulf@openssl.org>.
5.\" Copyright (c) 2000, 2004 The OpenSSL Project. All rights reserved. 6.\" Copyright (c) 2000, 2004 The OpenSSL Project. All rights reserved.
@@ -48,7 +49,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 51.\"
51.Dd $Mdocdate: November 20 2016 $ 52.Dd $Mdocdate: December 10 2016 $
52.Dt BN_NEW 3 53.Dt BN_NEW 3
53.Os 54.Os
54.Sh NAME 55.Sh NAME
@@ -81,6 +82,22 @@
81.Fa "BIGNUM *a" 82.Fa "BIGNUM *a"
82.Fc 83.Fc
83.Sh DESCRIPTION 84.Sh DESCRIPTION
85The BN library performs arithmetic operations on integers of arbitrary
86size.
87It was written for use in public key cryptography, such as RSA and
88Diffie-Hellman.
89.Pp
90It uses dynamic memory allocation for storing its data structures.
91That means that there is no limit on the size of the numbers manipulated
92by these functions, but return values must always be checked in case a
93memory allocation error has occurred.
94.Pp
95The basic object in this library is a
96.Vt BIGNUM .
97It is used to hold a single large integer.
98This type should be considered opaque and fields should not be modified
99or accessed directly.
100.Pp
84.Fn BN_new 101.Fn BN_new
85allocates and initializes a 102allocates and initializes a
86.Vt BIGNUM 103.Vt BIGNUM
@@ -119,7 +136,26 @@ If the allocation fails, it returns
119and sets an error code that can be obtained by 136and sets an error code that can be obtained by
120.Xr ERR_get_error 3 . 137.Xr ERR_get_error 3 .
121.Sh SEE ALSO 138.Sh SEE ALSO
122.Xr bn 3 , 139.Xr BN_add 3 ,
140.Xr BN_add_word 3 ,
141.Xr BN_BLINDING_new 3 ,
142.Xr BN_bn2bin 3 ,
143.Xr BN_cmp 3 ,
144.Xr BN_copy 3 ,
145.Xr BN_CTX_new 3 ,
146.Xr BN_CTX_start 3 ,
147.Xr bn_dump 3 ,
148.Xr BN_generate_prime 3 ,
149.Xr BN_get0_nist_prime_521 3 ,
150.Xr BN_mod_inverse 3 ,
151.Xr BN_mod_mul_montgomery 3 ,
152.Xr BN_mod_mul_reciprocal 3 ,
153.Xr BN_num_bytes 3 ,
154.Xr BN_rand 3 ,
155.Xr BN_set_bit 3 ,
156.Xr BN_set_negative 3 ,
157.Xr BN_swap 3 ,
158.Xr BN_zero 3 ,
123.Xr ERR_get_error 3 159.Xr ERR_get_error 3
124.Sh HISTORY 160.Sh HISTORY
125.Fn BN_new , 161.Fn BN_new ,