diff options
| author | tb <> | 2025-05-01 07:27:11 +0000 |
|---|---|---|
| committer | tb <> | 2025-05-01 07:27:11 +0000 |
| commit | 02a1cf821db97d6813871be7505177d3ffea62c6 (patch) | |
| tree | d82098023534ef49b74c439008961b34b0c08d39 /src | |
| parent | 5da7423ce712cde5b4217f03cf3fa735cd824239 (diff) | |
| download | openbsd-02a1cf821db97d6813871be7505177d3ffea62c6.tar.gz openbsd-02a1cf821db97d6813871be7505177d3ffea62c6.tar.bz2 openbsd-02a1cf821db97d6813871be7505177d3ffea62c6.zip | |
More space around .Dl + a typo on top
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.3 | 10 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/EC_POINT_point2oct.3 | 6 |
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. | |||
| 125 | These curves are defined over the prime field of order | 125 | These curves are defined over the prime field of order |
| 126 | .Fa p | 126 | .Fa p |
| 127 | via the Weierstrass equation | 127 | via the Weierstrass equation |
| 128 | .Pp | ||
| 128 | .Dl y^2 = x^3 + ax + b | 129 | .Dl y^2 = x^3 + ax + b |
| 130 | .Pp | ||
| 129 | where | 131 | where |
| 130 | .Fa a | 132 | .Fa a |
| 131 | and | 133 | and |
| @@ -143,7 +145,9 @@ the product of | |||
| 143 | and another integer called the | 145 | and another integer called the |
| 144 | .Fa cofactor . | 146 | .Fa cofactor . |
| 145 | Hasse's theorem is the inequality | 147 | Hasse'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 | ||
| 147 | which implies an upper bound on | 151 | which implies an upper bound on |
| 148 | .Fa order | 152 | .Fa order |
| 149 | in terms of | 153 | in terms of |
| @@ -445,7 +449,7 @@ have been available since | |||
| 445 | Too many. | 449 | Too many. |
| 446 | The API is unergonomic and the design is very poor even by | 450 | The API is unergonomic and the design is very poor even by |
| 447 | OpenSSL's standards. | 451 | OpenSSL's standards. |
| 448 | Naming is inconsistent, especially in regards to the _GFp suffix | 452 | Naming is inconsistent, especially in regard to the _GFp suffix |
| 449 | and the _get_ infix. | 453 | and the _get_ infix. |
| 450 | Function signatures are inconsistent. | 454 | Function signatures are inconsistent. |
| 451 | In particular, functions that should have a | 455 | In 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. | |||
| 95 | It is either the point at infinity or it has a representation | 95 | It 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, |
| 97 | in which case it satisfies the curve's Weierstrass equation | 97 | in 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 | ||
| 99 | in the prime field of size p. | 101 | in the prime field of size p. |
| 100 | Thus, y is a square root of x^3 + ax + b. | 102 | Thus, y is a square root of x^3 + ax + b. |
| 101 | Since p > 3 is odd, p - y is another square root | 103 | Since p > 3 is odd, p - y is another square root |
