diff options
author | schwarze <> | 2016-12-10 21:17:09 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-10 21:17:09 +0000 |
commit | 69fb7c59b8a8aa94efa86b74c20890ecce0af5d6 (patch) | |
tree | f4257751043a8acf8ab4e72c4d4af1f71916a83c /src | |
parent | 16f02ee21b68c18a3f651a3b1f9194c7810002d3 (diff) | |
download | openbsd-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')
-rw-r--r-- | src/lib/libcrypto/man/BN_new.3 | 44 | ||||
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/man/bn.3 | 70 |
3 files changed, 41 insertions, 76 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 |
85 | The BN library performs arithmetic operations on integers of arbitrary | ||
86 | size. | ||
87 | It was written for use in public key cryptography, such as RSA and | ||
88 | Diffie-Hellman. | ||
89 | .Pp | ||
90 | It uses dynamic memory allocation for storing its data structures. | ||
91 | That means that there is no limit on the size of the numbers manipulated | ||
92 | by these functions, but return values must always be checked in case a | ||
93 | memory allocation error has occurred. | ||
94 | .Pp | ||
95 | The basic object in this library is a | ||
96 | .Vt BIGNUM . | ||
97 | It is used to hold a single large integer. | ||
98 | This type should be considered opaque and fields should not be modified | ||
99 | or accessed directly. | ||
100 | .Pp | ||
84 | .Fn BN_new | 101 | .Fn BN_new |
85 | allocates and initializes a | 102 | allocates and initializes a |
86 | .Vt BIGNUM | 103 | .Vt BIGNUM |
@@ -119,7 +136,26 @@ If the allocation fails, it returns | |||
119 | and sets an error code that can be obtained by | 136 | and 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 , |
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 3878d948e1..e09095dc62 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.68 2016/12/06 12:54:19 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.69 2016/12/10 21:17:09 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -197,7 +197,6 @@ MAN= \ | |||
197 | X509_sign.3 \ | 197 | X509_sign.3 \ |
198 | X509_verify_cert.3 \ | 198 | X509_verify_cert.3 \ |
199 | X509v3_get_ext_by_NID.3 \ | 199 | X509v3_get_ext_by_NID.3 \ |
200 | bn.3 \ | ||
201 | bn_dump.3 \ | 200 | bn_dump.3 \ |
202 | crypto.3 \ | 201 | crypto.3 \ |
203 | d2i_ASN1_OBJECT.3 \ | 202 | d2i_ASN1_OBJECT.3 \ |
diff --git a/src/lib/libcrypto/man/bn.3 b/src/lib/libcrypto/man/bn.3 deleted file mode 100644 index 61ea3ee6fe..0000000000 --- a/src/lib/libcrypto/man/bn.3 +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | .\" $OpenBSD: bn.3,v 1.4 2016/11/06 15:52:50 jmc Exp $ | ||
2 | .\" | ||
3 | .Dd $Mdocdate: November 6 2016 $ | ||
4 | .Dt BN 3 | ||
5 | .Os | ||
6 | .Sh NAME | ||
7 | .Nm bn | ||
8 | .Nd multiprecision integer arithmetics | ||
9 | .Sh SYNOPSIS | ||
10 | .In openssl/bn.h | ||
11 | .Sh DESCRIPTION | ||
12 | This library performs arithmetic operations on integers of arbitrary size. | ||
13 | It was written for use in public key cryptography, such as RSA and | ||
14 | Diffie-Hellman. | ||
15 | .Pp | ||
16 | It uses dynamic memory allocation for storing its data structures. | ||
17 | That means that there is no limit on the size of the numbers manipulated | ||
18 | by these functions, but return values must always be checked in case a | ||
19 | memory allocation error has occurred. | ||
20 | .Pp | ||
21 | The basic object in this library is a | ||
22 | .Vt BIGNUM . | ||
23 | It is used to hold a single large integer. | ||
24 | This type should be considered opaque and fields should not be modified | ||
25 | or accessed directly. | ||
26 | .Pp | ||
27 | The creation of | ||
28 | .Vt BIGNUM | ||
29 | objects is described in | ||
30 | .Xr BN_new 3 ; | ||
31 | .Xr BN_add 3 | ||
32 | describes most of the arithmetic operations. | ||
33 | Comparison is described in | ||
34 | .Xr BN_cmp 3 ; | ||
35 | .Xr BN_zero 3 | ||
36 | describes certain assignments, | ||
37 | .Xr BN_rand 3 | ||
38 | the generation of random numbers, | ||
39 | .Xr BN_generate_prime 3 | ||
40 | deals with prime numbers and | ||
41 | .Xr BN_set_bit 3 | ||
42 | with bit operations. | ||
43 | The conversion of | ||
44 | .Vt BIGNUM Ns s | ||
45 | to external formats is described in | ||
46 | .Xr BN_bn2bin 3 . | ||
47 | .Sh SEE ALSO | ||
48 | .Xr BN_add 3 , | ||
49 | .Xr BN_add_word 3 , | ||
50 | .Xr BN_BLINDING_new 3 , | ||
51 | .Xr BN_bn2bin 3 , | ||
52 | .Xr BN_cmp 3 , | ||
53 | .Xr BN_copy 3 , | ||
54 | .Xr BN_CTX_new 3 , | ||
55 | .Xr BN_CTX_start 3 , | ||
56 | .Xr bn_dump 3 , | ||
57 | .Xr BN_generate_prime 3 , | ||
58 | .Xr BN_mod_inverse 3 , | ||
59 | .Xr BN_mod_mul_montgomery 3 , | ||
60 | .Xr BN_mod_mul_reciprocal 3 , | ||
61 | .Xr BN_new 3 , | ||
62 | .Xr BN_num_bytes 3 , | ||
63 | .Xr BN_rand 3 , | ||
64 | .Xr BN_set_bit 3 , | ||
65 | .Xr BN_set_negative 3 , | ||
66 | .Xr BN_swap 3 , | ||
67 | .Xr BN_zero 3 , | ||
68 | .Xr dh 3 , | ||
69 | .Xr ERR 3 , | ||
70 | .Xr rsa 3 | ||