diff options
author | schwarze <> | 2016-12-11 14:22:43 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-11 14:22:43 +0000 |
commit | 24e78a11838b5b911fc4a003f68b779f8b42e6f6 (patch) | |
tree | 92e6f5e2683d2d01cb0ba02412611bc21815b976 | |
parent | 11d403ec421a1cca33b5766d8b16528cfce5625c (diff) | |
download | openbsd-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.3 | 9 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EC_GFp_simple_method.3 | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EC_GROUP_copy.3 | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EC_GROUP_new.3 | 19 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EC_KEY_new.3 | 17 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EC_POINT_add.3 | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EC_POINT_new.3 | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/man/crypto.3 | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/man/d2i_ECPKParameters.3 | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/man/ec.3 | 77 |
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 | |||
198 | or | 198 | or |
199 | .Xr EVP_DigestVerifyInit 3 | 199 | .Xr EVP_DigestVerifyInit 3 |
200 | instead. | 200 | instead. |
201 | Creation of the required | ||
202 | .Vt EC_KEY | ||
203 | objects is described in | ||
204 | .Xr EC_KEY_new 3 . | ||
201 | .Pp | 205 | .Pp |
202 | The | 206 | The |
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 |
85 | The elliptic curve library provides a number of different | 85 | The elliptic curve library provides a number of different |
86 | implementations through a single common interface. | 86 | implementations through a single common interface. |
87 | Each implementation is optimised for different scenarios. | ||
88 | An implementation is represented by an | ||
89 | .Vt EC_METHOD | ||
90 | structure. | ||
91 | .Pp | ||
87 | When constructing a curve using | 92 | When constructing a curve using |
88 | .Xr EC_GROUP_new 3 , | 93 | .Xr EC_GROUP_new 3 , |
89 | an implementation method must be provided. | 94 | an 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 |
196 | These functions operate on | ||
197 | .Vt EC_GROUP | ||
198 | objects created by the functions described in | ||
199 | .Xr EC_GROUP_new 3 . | ||
200 | .Pp | ||
196 | .Fn EC_GROUP_copy | 201 | .Fn EC_GROUP_copy |
197 | copies the curve | 202 | copies the curve |
198 | .Fa src | 203 | .Fa src |
@@ -475,7 +480,6 @@ for a trinomial or pentanomial, respectively. | |||
475 | Alternatively in the event of an error a 0 is returned. | 480 | Alternatively 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 |
138 | The EC library provides functions for performing operations on | ||
139 | elliptic curves over finite fields. | ||
140 | In general, an elliptic curve satisfies an equation of the form: | ||
141 | .Pp | ||
142 | .Dl y^2 = x^3 + ax + b | ||
143 | .Pp | ||
138 | Within the library there are two forms of elliptic curves that are of | 144 | Within the library there are two forms of elliptic curves that are of |
139 | interest. | 145 | interest. |
140 | The first form is those defined over the prime field Fp. | 146 | The 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 | |||
143 | is a prime number. | 149 | is a prime number. |
144 | This gives us a revised elliptic curve equation as follows: | 150 | This 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 |
148 | The second form is those defined over a binary field F2^m where the | 154 | The second form is those defined over a binary field F2^m where the |
149 | elements of the field are integers of length at most m bits. | 155 | elements of the field are integers of length at most m bits. |
@@ -156,6 +162,9 @@ polynomial. | |||
156 | All such curves with OpenSSL use a trinomial or a pentanomial for this | 162 | All such curves with OpenSSL use a trinomial or a pentanomial for this |
157 | parameter. | 163 | parameter. |
158 | .Pp | 164 | .Pp |
165 | An | ||
166 | .Vt EC_GROUP | ||
167 | structure is used to represent the definition of an elliptic curve. | ||
159 | A new curve can be constructed by calling | 168 | A new curve can be constructed by calling |
160 | .Fn EC_GROUP_new , | 169 | .Fn EC_GROUP_new , |
161 | using the implementation provided by | 170 | using the implementation provided by |
@@ -291,9 +300,9 @@ and | |||
291 | return 1 on success or 0 on error. | 300 | return 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 @@ | |||
221 | An | 221 | An |
222 | .Vt EC_KEY | 222 | .Vt EC_KEY |
223 | represents a public key and (optionally) an associated private key. | 223 | represents a public key and (optionally) an associated private key. |
224 | The public key is a point on a curve represented by an | ||
225 | .Vt EC_POINT , | ||
226 | see | ||
227 | .Xr EC_POINT_new 3 . | ||
228 | The private key is simply a | ||
229 | .Vt BIGNUM , | ||
230 | see | ||
231 | .Xr BN_new 3 . | ||
232 | .Pp | ||
224 | A new | 233 | A 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 |
152 | These functions operate on | ||
153 | .Vt EC_POINT | ||
154 | objects created by | ||
155 | .Xr EC_POINT_new 3 . | ||
156 | .Pp | ||
152 | .Fn EC_POINT_add | 157 | .Fn EC_POINT_add |
153 | adds the two points | 158 | adds 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. | |||
261 | returns 1 if a precomputation has been done or 0 if not. | 266 | returns 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 @@ | |||
224 | An | 224 | An |
225 | .Vt EC_POINT | 225 | .Vt EC_POINT |
226 | represents a point on a curve. | 226 | represents a point on a curve. |
227 | A curve is represented by an | ||
228 | .Vt EC_GROUP | ||
229 | object created by the functions described in | ||
230 | .Xr EC_GROUP_new 3 . | ||
231 | .Pp | ||
227 | A new point is constructed by calling the function | 232 | A new point is constructed by calling the function |
228 | .Fn EC_POINT_new | 233 | .Fn EC_POINT_new |
229 | and providing the | 234 | and providing the |
@@ -460,7 +465,6 @@ returns the pointer to the | |||
460 | on error. | 465 | on 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 | |||
127 | include | 127 | include |
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 |
133 | Some of the newer functions follow a naming convention using the numbers | 133 | Some 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 | |||
378 | return 1 for success or 0 if an error occurs. | 378 | return 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 | ||
12 | This library provides an extensive set of functions for performing | ||
13 | operations on elliptic curves over finite fields. | ||
14 | In general an elliptic curve is one with an equation of the form: | ||
15 | .Pp | ||
16 | .Dl y^2 = x^3 + ax + b | ||
17 | .Pp | ||
18 | An | ||
19 | .Vt EC_GROUP | ||
20 | structure is used to represent the definition of an elliptic curve. | ||
21 | Points on a curve are stored using an | ||
22 | .Vt EC_POINT | ||
23 | structure. | ||
24 | An | ||
25 | .Vt EC_KEY | ||
26 | is used to hold a private/public key pair, where a private key is simply a | ||
27 | .Vt BIGNUM | ||
28 | and a public key is a point on a curve represented by an | ||
29 | .Vt EC_POINT . | ||
30 | .Pp | ||
31 | The library contains a number of alternative implementations of the | ||
32 | different functions. | ||
33 | Each implementation is optimised for different scenarios. | ||
34 | No matter which implementation is being used, the interface remains the | ||
35 | same. | ||
36 | The library handles calling the correct implementation when an interface | ||
37 | function is invoked. | ||
38 | An implementation is represented by an | ||
39 | .Vt EC_METHOD | ||
40 | structure. | ||
41 | .Pp | ||
42 | The creation and destruction of | ||
43 | .Vt EC_GROUP | ||
44 | objects is described in | ||
45 | .Xr EC_GROUP_new 3 . | ||
46 | Functions for manipulating | ||
47 | .Vt EC_GROUP | ||
48 | objects are described in | ||
49 | .Xr EC_GROUP_copy 3 . | ||
50 | .Pp | ||
51 | Functions for creating, destroying and manipulating | ||
52 | .Vt EC_POINT | ||
53 | objects are explained in | ||
54 | .Xr EC_POINT_new 3 , | ||
55 | whilst functions for performing mathematical operations and tests on | ||
56 | .Vt EC_POINT Ns s | ||
57 | are covered in | ||
58 | .Xr EC_POINT_add 3 . | ||
59 | .Pp | ||
60 | For working with private and public keys refer to | ||
61 | .Xr EC_KEY_new 3 . | ||
62 | Implementations are covered in | ||
63 | .Xr EC_GFp_simple_method 3 . | ||
64 | .Pp | ||
65 | For information on encoding and decoding curve parameters to and | ||
66 | from 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 | ||