From 97fb1c047a796038f9779b2e0a19f5c311ea2f23 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 26 Apr 2025 07:07:29 +0000 Subject: EC_GROUP_new_curve_GFp: some fixes in the RETURN VALUE section --- src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.3 | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src') 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 f13c969c28..3346bd80ef 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 @@ -.\" $OpenBSD: EC_GROUP_new_curve_GFp.3,v 1.1 2025/04/25 19:57:12 tb Exp $ +.\" $OpenBSD: EC_GROUP_new_curve_GFp.3,v 1.2 2025/04/26 07:07:29 tb Exp $ .\" .\" Copyright (c) 2025 Theo Buehler .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 25 2025 $ +.Dd $Mdocdate: April 26 2025 $ .Dt EC_GROUP_NEW_CURVE_GFP 3 .Os .Sh NAME @@ -359,6 +359,7 @@ returns 1 on success and 0 on memory allocation failure, or if or .Fa cofactor are larger than Hasse's theorem allows. +.Pp .Fn EC_GROUP_get0_generator returns an internal pointer to the .Fa generator @@ -369,20 +370,22 @@ if none was set on .Pp .Fn EC_GROUP_get_order returns 1 on success or 0 on memory allocation failure or if the -.Fa group Ns 's -order is set to -.Fa zero . +.Fa order +is zero. +.Pp +.Fn EC_GROUP_get_cofactor +returns 1 on success or 0 on memory allocation failure or if the +.Fa cofactor +is zero. .Pp .Fn EC_GROUP_get_degree , -.Fn EC_GROUP_order_bits , and -.Fn EC_GROUP_get_cofactor +.Fn EC_GROUP_order_bits return the number of bits in the .Fa group Ns 's .Fa p , -.Fa order , and -.Fa cofactor , +.Fa order , respectively. .Sh SEE ALSO .Xr BN_new 3 , -- cgit v1.2.3-55-g6feb