summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.310
-rw-r--r--src/lib/libcrypto/man/EC_POINT_point2oct.36
2 files changed, 11 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.3 b/src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.3
index 3346bd80ef..767c50fe55 100644
--- a/src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.3
+++ b/src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_GROUP_new_curve_GFp.3,v 1.2 2025/04/26 07:07:29 tb Exp $ 1.\" $OpenBSD: EC_GROUP_new_curve_GFp.3,v 1.3 2025/05/01 07:27:11 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2025 Theo Buehler <tb@openbsd.org> 3.\" Copyright (c) 2025 Theo Buehler <tb@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: April 26 2025 $ 17.Dd $Mdocdate: May 1 2025 $
18.Dt EC_GROUP_NEW_CURVE_GFP 3 18.Dt EC_GROUP_NEW_CURVE_GFP 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -125,7 +125,9 @@ elliptic curves in Weierstrass form.
125These curves are defined over the prime field of order 125These curves are defined over the prime field of order
126.Fa p 126.Fa p
127via the Weierstrass equation 127via the Weierstrass equation
128.Pp
128.Dl y^2 = x^3 + ax + b 129.Dl y^2 = x^3 + ax + b
130.Pp
129where 131where
130.Fa a 132.Fa a
131and 133and
@@ -143,7 +145,9 @@ the product of
143and another integer called the 145and another integer called the
144.Fa cofactor . 146.Fa cofactor .
145Hasse's theorem is the inequality 147Hasse's theorem is the inequality
148.Pp
146.Dl | Ns Fa order No * Fa cofactor No - (p + 1)| <= 2 sqrt(p) 149.Dl | Ns Fa order No * Fa cofactor No - (p + 1)| <= 2 sqrt(p)
150.Pp
147which implies an upper bound on 151which implies an upper bound on
148.Fa order 152.Fa order
149in terms of 153in terms of
@@ -445,7 +449,7 @@ have been available since
445Too many. 449Too many.
446The API is unergonomic and the design is very poor even by 450The API is unergonomic and the design is very poor even by
447OpenSSL's standards. 451OpenSSL's standards.
448Naming is inconsistent, especially in regards to the _GFp suffix 452Naming is inconsistent, especially in regard to the _GFp suffix
449and the _get_ infix. 453and the _get_ infix.
450Function signatures are inconsistent. 454Function signatures are inconsistent.
451In particular, functions that should have a 455In particular, functions that should have a
diff --git a/src/lib/libcrypto/man/EC_POINT_point2oct.3 b/src/lib/libcrypto/man/EC_POINT_point2oct.3
index ebb09f8001..7c5ee9923d 100644
--- a/src/lib/libcrypto/man/EC_POINT_point2oct.3
+++ b/src/lib/libcrypto/man/EC_POINT_point2oct.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EC_POINT_point2oct.3,v 1.2 2025/04/26 09:03:03 tb Exp $ 1.\" $OpenBSD: EC_POINT_point2oct.3,v 1.3 2025/05/01 07:27:11 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2025 Theo Buehler <tb@openbsd.org> 3.\" Copyright (c) 2025 Theo Buehler <tb@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: April 26 2025 $ 17.Dd $Mdocdate: May 1 2025 $
18.Dt EC_POINT_POINT2OCT 3 18.Dt EC_POINT_POINT2OCT 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -95,7 +95,9 @@ object.
95It is either the point at infinity or it has a representation 95It is either the point at infinity or it has a representation
96(x, y) in standard affine coordinates, 96(x, y) in standard affine coordinates,
97in which case it satisfies the curve's Weierstrass equation 97in which case it satisfies the curve's Weierstrass equation
98.Pp
98.Dl y^2 = x^3 + ax + b 99.Dl y^2 = x^3 + ax + b
100.Pp
99in the prime field of size p. 101in the prime field of size p.
100Thus, y is a square root of x^3 + ax + b. 102Thus, y is a square root of x^3 + ax + b.
101Since p > 3 is odd, p - y is another square root 103Since p > 3 is odd, p - y is another square root