summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-12-11 14:22:43 +0000
committerschwarze <>2016-12-11 14:22:43 +0000
commit24e78a11838b5b911fc4a003f68b779f8b42e6f6 (patch)
tree92e6f5e2683d2d01cb0ba02412611bc21815b976
parent11d403ec421a1cca33b5766d8b16528cfce5625c (diff)
downloadopenbsd-24e78a11838b5b911fc4a003f68b779f8b42e6f6.tar.gz
openbsd-24e78a11838b5b911fc4a003f68b779f8b42e6f6.tar.bz2
openbsd-24e78a11838b5b911fc4a003f68b779f8b42e6f6.zip
Distribute the text of ec(3) to the individual EC manuals where it belongs.
Make sure EC_GROUP_new(3) points to all EC manuals and all EC manuals point back to EC_GROUP_new(3), and add some other useful links as well. Change all links to ec(3) to point to EC_GROUP_new(3) instead.
-rw-r--r--src/lib/libcrypto/man/ECDSA_SIG_new.39
-rw-r--r--src/lib/libcrypto/man/EC_GFp_simple_method.310
-rw-r--r--src/lib/libcrypto/man/EC_GROUP_copy.310
-rw-r--r--src/lib/libcrypto/man/EC_GROUP_new.319
-rw-r--r--src/lib/libcrypto/man/EC_KEY_new.317
-rw-r--r--src/lib/libcrypto/man/EC_POINT_add.310
-rw-r--r--src/lib/libcrypto/man/EC_POINT_new.310
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/crypto.34
-rw-r--r--src/lib/libcrypto/man/d2i_ECPKParameters.38
-rw-r--r--src/lib/libcrypto/man/ec.377
11 files changed, 70 insertions, 107 deletions
diff --git a/src/lib/libcrypto/man/ECDSA_SIG_new.3 b/src/lib/libcrypto/man/ECDSA_SIG_new.3
index 6275ae398e..c0dbb18fc0 100644
--- a/src/lib/libcrypto/man/ECDSA_SIG_new.3
+++ b/src/lib/libcrypto/man/ECDSA_SIG_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ECDSA_SIG_new.3,v 1.6 2016/12/11 12:21:48 schwarze Exp $ 1.\" $OpenBSD: ECDSA_SIG_new.3,v 1.7 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL e6390aca Jul 21 10:06:03 2015 -0400 2.\" OpenSSL e6390aca Jul 21 10:06:03 2015 -0400
3.\" 3.\"
4.\" This file was written by Nils Larsch <nils@openssl.org>. 4.\" This file was written by Nils Larsch <nils@openssl.org>.
@@ -198,6 +198,10 @@ Most applications should use the higher level EVP interface such as
198or 198or
199.Xr EVP_DigestVerifyInit 3 199.Xr EVP_DigestVerifyInit 3
200instead. 200instead.
201Creation of the required
202.Vt EC_KEY
203objects is described in
204.Xr EC_KEY_new 3 .
201.Pp 205.Pp
202The 206The
203.Vt ECDSA_SIG 207.Vt ECDSA_SIG
@@ -454,7 +458,10 @@ if (ret == -1) {
454} 458}
455.Ed 459.Ed
456.Sh SEE ALSO 460.Sh SEE ALSO
461.Xr d2i_ECPKParameters 3 ,
457.Xr DSA_new 3 , 462.Xr DSA_new 3 ,
463.Xr EC_GROUP_new 3 ,
464.Xr EC_KEY_new 3 ,
458.Xr EVP_DigestSignInit 3 , 465.Xr EVP_DigestSignInit 3 ,
459.Xr EVP_DigestVerifyInit 3 , 466.Xr EVP_DigestVerifyInit 3 ,
460.Xr RSA_new 3 467.Xr RSA_new 3
diff --git a/src/lib/libcrypto/man/EC_GFp_simple_method.3 b/src/lib/libcrypto/man/EC_GFp_simple_method.3
index d2f0d76bce..7f08e707f5 100644
--- a/src/lib/libcrypto/man/EC_GFp_simple_method.3
+++ b/src/lib/libcrypto/man/EC_GFp_simple_method.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_GFp_simple_method.3,v 1.5 2016/12/06 14:54:55 schwarze Exp $ 1.\" $OpenBSD: EC_GFp_simple_method.3,v 1.6 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" 3.\"
4.\" This file was written by Matt Caswell <matt@openssl.org>. 4.\" This file was written by Matt Caswell <matt@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 6 2016 $ 51.Dd $Mdocdate: December 11 2016 $
52.Dt EC_GFP_SIMPLE_METHOD 3 52.Dt EC_GFP_SIMPLE_METHOD 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -84,6 +84,11 @@
84.Sh DESCRIPTION 84.Sh DESCRIPTION
85The elliptic curve library provides a number of different 85The elliptic curve library provides a number of different
86implementations through a single common interface. 86implementations through a single common interface.
87Each implementation is optimised for different scenarios.
88An implementation is represented by an
89.Vt EC_METHOD
90structure.
91.Pp
87When constructing a curve using 92When constructing a curve using
88.Xr EC_GROUP_new 3 , 93.Xr EC_GROUP_new 3 ,
89an implementation method must be provided. 94an implementation method must be provided.
@@ -149,7 +154,6 @@ structure supports.
149.Sh SEE ALSO 154.Sh SEE ALSO
150.Xr BN_mod_mul_montgomery 3 , 155.Xr BN_mod_mul_montgomery 3 ,
151.Xr d2i_ECPKParameters 3 , 156.Xr d2i_ECPKParameters 3 ,
152.Xr ec 3 ,
153.Xr EC_GROUP_copy 3 , 157.Xr EC_GROUP_copy 3 ,
154.Xr EC_GROUP_new 3 , 158.Xr EC_GROUP_new 3 ,
155.Xr EC_KEY_new 3 , 159.Xr EC_KEY_new 3 ,
diff --git a/src/lib/libcrypto/man/EC_GROUP_copy.3 b/src/lib/libcrypto/man/EC_GROUP_copy.3
index 7d778c1e32..d857a21929 100644
--- a/src/lib/libcrypto/man/EC_GROUP_copy.3
+++ b/src/lib/libcrypto/man/EC_GROUP_copy.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_GROUP_copy.3,v 1.6 2016/12/06 14:54:55 schwarze Exp $ 1.\" $OpenBSD: EC_GROUP_copy.3,v 1.7 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL aafbe1cc Jun 12 23:42:08 2013 +0100 2.\" OpenSSL aafbe1cc Jun 12 23:42:08 2013 +0100
3.\" 3.\"
4.\" This file was written by Matt Caswell <matt@openssl.org>. 4.\" This file was written by Matt Caswell <matt@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 6 2016 $ 51.Dd $Mdocdate: December 11 2016 $
52.Dt EC_GROUP_COPY 3 52.Dt EC_GROUP_COPY 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -193,6 +193,11 @@
193.Fa "unsigned int *k3" 193.Fa "unsigned int *k3"
194.Fc 194.Fc
195.Sh DESCRIPTION 195.Sh DESCRIPTION
196These functions operate on
197.Vt EC_GROUP
198objects created by the functions described in
199.Xr EC_GROUP_new 3 .
200.Pp
196.Fn EC_GROUP_copy 201.Fn EC_GROUP_copy
197copies the curve 202copies the curve
198.Fa src 203.Fa src
@@ -475,7 +480,6 @@ for a trinomial or pentanomial, respectively.
475Alternatively in the event of an error a 0 is returned. 480Alternatively in the event of an error a 0 is returned.
476.Sh SEE ALSO 481.Sh SEE ALSO
477.Xr d2i_ECPKParameters 3 , 482.Xr d2i_ECPKParameters 3 ,
478.Xr ec 3 ,
479.Xr EC_GFp_simple_method 3 , 483.Xr EC_GFp_simple_method 3 ,
480.Xr EC_GROUP_new 3 , 484.Xr EC_GROUP_new 3 ,
481.Xr EC_KEY_new 3 , 485.Xr EC_KEY_new 3 ,
diff --git a/src/lib/libcrypto/man/EC_GROUP_new.3 b/src/lib/libcrypto/man/EC_GROUP_new.3
index 27916744dd..f1227da759 100644
--- a/src/lib/libcrypto/man/EC_GROUP_new.3
+++ b/src/lib/libcrypto/man/EC_GROUP_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_GROUP_new.3,v 1.5 2016/12/06 14:54:55 schwarze Exp $ 1.\" $OpenBSD: EC_GROUP_new.3,v 1.6 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL 9b86974e Mon Aug 17 15:21:33 2015 -0400 2.\" OpenSSL 9b86974e Mon Aug 17 15:21:33 2015 -0400
3.\" 3.\"
4.\" This file was written by Matt Caswell <matt@openssl.org>. 4.\" This file was written by Matt Caswell <matt@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 6 2016 $ 51.Dd $Mdocdate: December 11 2016 $
52.Dt EC_GROUP_NEW 3 52.Dt EC_GROUP_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -135,6 +135,12 @@
135.Fa "size_t nitems" 135.Fa "size_t nitems"
136.Fc 136.Fc
137.Sh DESCRIPTION 137.Sh DESCRIPTION
138The EC library provides functions for performing operations on
139elliptic curves over finite fields.
140In general, an elliptic curve satisfies an equation of the form:
141.Pp
142.Dl y^2 = x^3 + ax + b
143.Pp
138Within the library there are two forms of elliptic curves that are of 144Within the library there are two forms of elliptic curves that are of
139interest. 145interest.
140The first form is those defined over the prime field Fp. 146The first form is those defined over the prime field Fp.
@@ -143,7 +149,7 @@ The elements of Fp are the integers 0 to p-1, where
143is a prime number. 149is a prime number.
144This gives us a revised elliptic curve equation as follows: 150This gives us a revised elliptic curve equation as follows:
145.Pp 151.Pp
146.Dl y^2 mod p = x^3 +ax + b mod p 152.Dl y^2 mod p = x^3 + ax + b mod p
147.Pp 153.Pp
148The second form is those defined over a binary field F2^m where the 154The second form is those defined over a binary field F2^m where the
149elements of the field are integers of length at most m bits. 155elements of the field are integers of length at most m bits.
@@ -156,6 +162,9 @@ polynomial.
156All such curves with OpenSSL use a trinomial or a pentanomial for this 162All such curves with OpenSSL use a trinomial or a pentanomial for this
157parameter. 163parameter.
158.Pp 164.Pp
165An
166.Vt EC_GROUP
167structure is used to represent the definition of an elliptic curve.
159A new curve can be constructed by calling 168A new curve can be constructed by calling
160.Fn EC_GROUP_new , 169.Fn EC_GROUP_new ,
161using the implementation provided by 170using the implementation provided by
@@ -291,9 +300,9 @@ and
291return 1 on success or 0 on error. 300return 1 on success or 0 on error.
292.Sh SEE ALSO 301.Sh SEE ALSO
293.Xr d2i_ECPKParameters 3 , 302.Xr d2i_ECPKParameters 3 ,
294.Xr ec 3 ,
295.Xr EC_GFp_simple_method 3 , 303.Xr EC_GFp_simple_method 3 ,
296.Xr EC_GROUP_copy 3 , 304.Xr EC_GROUP_copy 3 ,
297.Xr EC_KEY_new 3 , 305.Xr EC_KEY_new 3 ,
298.Xr EC_POINT_add 3 , 306.Xr EC_POINT_add 3 ,
299.Xr EC_POINT_new 3 307.Xr EC_POINT_new 3 ,
308.Xr ECDSA_SIG_new 3
diff --git a/src/lib/libcrypto/man/EC_KEY_new.3 b/src/lib/libcrypto/man/EC_KEY_new.3
index fecb718a2b..742be773ee 100644
--- a/src/lib/libcrypto/man/EC_KEY_new.3
+++ b/src/lib/libcrypto/man/EC_KEY_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_KEY_new.3,v 1.7 2016/12/06 14:54:55 schwarze Exp $ 1.\" $OpenBSD: EC_KEY_new.3,v 1.8 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL d900a015 Oct 8 14:40:42 2015 +0200 2.\" OpenSSL d900a015 Oct 8 14:40:42 2015 +0200
3.\" 3.\"
4.\" This file was written by Matt Caswell <matt@openssl.org>. 4.\" This file was written by Matt Caswell <matt@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 6 2016 $ 51.Dd $Mdocdate: December 11 2016 $
52.Dt EC_KEY_NEW 3 52.Dt EC_KEY_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -221,6 +221,15 @@
221An 221An
222.Vt EC_KEY 222.Vt EC_KEY
223represents a public key and (optionally) an associated private key. 223represents a public key and (optionally) an associated private key.
224The public key is a point on a curve represented by an
225.Vt EC_POINT ,
226see
227.Xr EC_POINT_new 3 .
228The private key is simply a
229.Vt BIGNUM ,
230see
231.Xr BN_new 3 .
232.Pp
224A new 233A new
225.Vt EC_KEY 234.Vt EC_KEY
226(with no associated curve) can be constructed by calling 235(with no associated curve) can be constructed by calling
@@ -510,9 +519,9 @@ returns the point_conversion_form for the
510.Vt EC_KEY . 519.Vt EC_KEY .
511.Sh SEE ALSO 520.Sh SEE ALSO
512.Xr d2i_ECPKParameters 3 , 521.Xr d2i_ECPKParameters 3 ,
513.Xr ec 3 ,
514.Xr EC_GFp_simple_method 3 , 522.Xr EC_GFp_simple_method 3 ,
515.Xr EC_GROUP_copy 3 , 523.Xr EC_GROUP_copy 3 ,
516.Xr EC_GROUP_new 3 , 524.Xr EC_GROUP_new 3 ,
517.Xr EC_POINT_add 3 , 525.Xr EC_POINT_add 3 ,
518.Xr EC_POINT_new 3 526.Xr EC_POINT_new 3 ,
527.Xr ECDSA_SIG_new 3
diff --git a/src/lib/libcrypto/man/EC_POINT_add.3 b/src/lib/libcrypto/man/EC_POINT_add.3
index 74de2fa01c..dd3d58056a 100644
--- a/src/lib/libcrypto/man/EC_POINT_add.3
+++ b/src/lib/libcrypto/man/EC_POINT_add.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_POINT_add.3,v 1.5 2016/12/06 14:54:55 schwarze Exp $ 1.\" $OpenBSD: EC_POINT_add.3,v 1.6 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" 3.\"
4.\" This file was written by Matt Caswell <matt@openssl.org>. 4.\" This file was written by Matt Caswell <matt@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 6 2016 $ 51.Dd $Mdocdate: December 11 2016 $
52.Dt EC_POINT_ADD 3 52.Dt EC_POINT_ADD 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -149,6 +149,11 @@
149.Fa "const EC_GROUP *group" 149.Fa "const EC_GROUP *group"
150.Fc 150.Fc
151.Sh DESCRIPTION 151.Sh DESCRIPTION
152These functions operate on
153.Vt EC_POINT
154objects created by
155.Xr EC_POINT_new 3 .
156.Pp
152.Fn EC_POINT_add 157.Fn EC_POINT_add
153adds the two points 158adds the two points
154.Fa a 159.Fa a
@@ -261,7 +266,6 @@ returns 1 if the points are not equal, 0 if they are, or -1 on error.
261returns 1 if a precomputation has been done or 0 if not. 266returns 1 if a precomputation has been done or 0 if not.
262.Sh SEE ALSO 267.Sh SEE ALSO
263.Xr d2i_ECPKParameters 3 , 268.Xr d2i_ECPKParameters 3 ,
264.Xr ec 3 ,
265.Xr EC_GFp_simple_method 3 , 269.Xr EC_GFp_simple_method 3 ,
266.Xr EC_GROUP_copy 3 , 270.Xr EC_GROUP_copy 3 ,
267.Xr EC_GROUP_new 3 , 271.Xr EC_GROUP_new 3 ,
diff --git a/src/lib/libcrypto/man/EC_POINT_new.3 b/src/lib/libcrypto/man/EC_POINT_new.3
index 235c8d69bc..1e09208ffa 100644
--- a/src/lib/libcrypto/man/EC_POINT_new.3
+++ b/src/lib/libcrypto/man/EC_POINT_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_POINT_new.3,v 1.5 2016/12/06 14:54:55 schwarze Exp $ 1.\" $OpenBSD: EC_POINT_new.3,v 1.6 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" 3.\"
4.\" This file was written by Matt Caswell <matt@openssl.org>. 4.\" This file was written by Matt Caswell <matt@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 6 2016 $ 51.Dd $Mdocdate: December 11 2016 $
52.Dt EC_POINT_NEW 3 52.Dt EC_POINT_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -224,6 +224,11 @@
224An 224An
225.Vt EC_POINT 225.Vt EC_POINT
226represents a point on a curve. 226represents a point on a curve.
227A curve is represented by an
228.Vt EC_GROUP
229object created by the functions described in
230.Xr EC_GROUP_new 3 .
231.Pp
227A new point is constructed by calling the function 232A new point is constructed by calling the function
228.Fn EC_POINT_new 233.Fn EC_POINT_new
229and providing the 234and providing the
@@ -460,7 +465,6 @@ returns the pointer to the
460on error. 465on error.
461.Sh SEE ALSO 466.Sh SEE ALSO
462.Xr d2i_ECPKParameters 3 , 467.Xr d2i_ECPKParameters 3 ,
463.Xr ec 3 ,
464.Xr EC_GFp_simple_method 3 , 468.Xr EC_GFp_simple_method 3 ,
465.Xr EC_GROUP_copy 3 , 469.Xr EC_GROUP_copy 3 ,
466.Xr EC_GROUP_new 3 , 470.Xr EC_GROUP_new 3 ,
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 82d313af96..4d23082d1f 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.72 2016/12/11 12:52:28 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.73 2016/12/11 14:22:43 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -213,7 +213,6 @@ MAN= \
213 d2i_X509_REQ.3 \ 213 d2i_X509_REQ.3 \
214 d2i_X509_SIG.3 \ 214 d2i_X509_SIG.3 \
215 des_read_pw.3 \ 215 des_read_pw.3 \
216 ec.3 \
217 engine.3 \ 216 engine.3 \
218 evp.3 \ 217 evp.3 \
219 i2d_PKCS7_bio_stream.3 \ 218 i2d_PKCS7_bio_stream.3 \
diff --git a/src/lib/libcrypto/man/crypto.3 b/src/lib/libcrypto/man/crypto.3
index 4acd876375..b176b48b36 100644
--- a/src/lib/libcrypto/man/crypto.3
+++ b/src/lib/libcrypto/man/crypto.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: crypto.3,v 1.12 2016/12/11 12:21:48 schwarze Exp $ 1.\" $OpenBSD: crypto.3,v 1.13 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL a9c85cea Nov 11 09:33:55 2016 +0100 2.\" OpenSSL a9c85cea Nov 11 09:33:55 2016 +0100
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org> and 4.\" This file was written by Ulf Moeller <ulf@openssl.org> and
@@ -127,7 +127,7 @@ thread support, see
127include 127include
128.Xr BIO_f_buffer 3 , 128.Xr BIO_f_buffer 3 ,
129.Xr BN_new 3 , 129.Xr BN_new 3 ,
130.Xr ec 3 , 130.Xr EC_GROUP_new 3 ,
131.Xr lh_new 3 . 131.Xr lh_new 3 .
132.Pp 132.Pp
133Some of the newer functions follow a naming convention using the numbers 133Some of the newer functions follow a naming convention using the numbers
diff --git a/src/lib/libcrypto/man/d2i_ECPKParameters.3 b/src/lib/libcrypto/man/d2i_ECPKParameters.3
index 02f3c5c39b..edecdee67c 100644
--- a/src/lib/libcrypto/man/d2i_ECPKParameters.3
+++ b/src/lib/libcrypto/man/d2i_ECPKParameters.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: d2i_ECPKParameters.3,v 1.6 2016/12/06 14:54:55 schwarze Exp $ 1.\" $OpenBSD: d2i_ECPKParameters.3,v 1.7 2016/12/11 14:22:43 schwarze Exp $
2.\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400 2.\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400
3.\" 3.\"
4.\" This file was written by Matt Caswell <matt@openssl.org>. 4.\" This file was written by Matt Caswell <matt@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 6 2016 $ 51.Dd $Mdocdate: December 11 2016 $
52.Dt D2I_ECPKPARAMETERS 3 52.Dt D2I_ECPKPARAMETERS 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -378,10 +378,10 @@ and
378return 1 for success or 0 if an error occurs. 378return 1 for success or 0 if an error occurs.
379.Sh SEE ALSO 379.Sh SEE ALSO
380.Xr d2i_X509 3 , 380.Xr d2i_X509 3 ,
381.Xr ec 3 ,
382.Xr EC_GFp_simple_method 3 , 381.Xr EC_GFp_simple_method 3 ,
383.Xr EC_GROUP_copy 3 , 382.Xr EC_GROUP_copy 3 ,
384.Xr EC_GROUP_new 3 , 383.Xr EC_GROUP_new 3 ,
385.Xr EC_KEY_new 3 , 384.Xr EC_KEY_new 3 ,
386.Xr EC_POINT_add 3 , 385.Xr EC_POINT_add 3 ,
387.Xr EC_POINT_new 3 386.Xr EC_POINT_new 3 ,
387.Xr ECDSA_SIG_new 3
diff --git a/src/lib/libcrypto/man/ec.3 b/src/lib/libcrypto/man/ec.3
deleted file mode 100644
index b3e0c8697e..0000000000
--- a/src/lib/libcrypto/man/ec.3
+++ /dev/null
@@ -1,77 +0,0 @@
1.\" $OpenBSD: ec.3,v 1.4 2016/12/08 21:48:50 jmc Exp $
2.\"
3.Dd $Mdocdate: December 8 2016 $
4.Dt EC 3
5.Os
6.Sh NAME
7.Nm ec
8.Nd Elliptic Curve functions
9.Sh SYNOPSIS
10.In openssl/ec.h
11.Sh DESCRIPTION
12This library provides an extensive set of functions for performing
13operations on elliptic curves over finite fields.
14In general an elliptic curve is one with an equation of the form:
15.Pp
16.Dl y^2 = x^3 + ax + b
17.Pp
18An
19.Vt EC_GROUP
20structure is used to represent the definition of an elliptic curve.
21Points on a curve are stored using an
22.Vt EC_POINT
23structure.
24An
25.Vt EC_KEY
26is used to hold a private/public key pair, where a private key is simply a
27.Vt BIGNUM
28and a public key is a point on a curve represented by an
29.Vt EC_POINT .
30.Pp
31The library contains a number of alternative implementations of the
32different functions.
33Each implementation is optimised for different scenarios.
34No matter which implementation is being used, the interface remains the
35same.
36The library handles calling the correct implementation when an interface
37function is invoked.
38An implementation is represented by an
39.Vt EC_METHOD
40structure.
41.Pp
42The creation and destruction of
43.Vt EC_GROUP
44objects is described in
45.Xr EC_GROUP_new 3 .
46Functions for manipulating
47.Vt EC_GROUP
48objects are described in
49.Xr EC_GROUP_copy 3 .
50.Pp
51Functions for creating, destroying and manipulating
52.Vt EC_POINT
53objects are explained in
54.Xr EC_POINT_new 3 ,
55whilst functions for performing mathematical operations and tests on
56.Vt EC_POINT Ns s
57are covered in
58.Xr EC_POINT_add 3 .
59.Pp
60For working with private and public keys refer to
61.Xr EC_KEY_new 3 .
62Implementations are covered in
63.Xr EC_GFp_simple_method 3 .
64.Pp
65For information on encoding and decoding curve parameters to and
66from ASN.1 see
67.Xr d2i_ECPKParameters 3 .
68.Sh SEE ALSO
69.Xr crypto 3 ,
70.Xr d2i_ECPKParameters 3 ,
71.Xr EC_GFp_simple_method 3 ,
72.Xr EC_GROUP_copy 3 ,
73.Xr EC_GROUP_new 3 ,
74.Xr EC_KEY_new 3 ,
75.Xr EC_POINT_add 3 ,
76.Xr EC_POINT_new 3 ,
77.Xr EVP_PKEY_CTX_set_ec_paramgen_curve_nid 3