summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2025-04-26 07:07:29 +0000
committertb <>2025-04-26 07:07:29 +0000
commit97fb1c047a796038f9779b2e0a19f5c311ea2f23 (patch)
treede48ed948c265b396d44066d3b76c69256a44805 /src
parentf912145db6556efea9f4a45b6c918b20f2e2d558 (diff)
downloadopenbsd-97fb1c047a796038f9779b2e0a19f5c311ea2f23.tar.gz
openbsd-97fb1c047a796038f9779b2e0a19f5c311ea2f23.tar.bz2
openbsd-97fb1c047a796038f9779b2e0a19f5c311ea2f23.zip
EC_GROUP_new_curve_GFp: some fixes in the RETURN VALUE section
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/EC_GROUP_new_curve_GFp.321
1 files changed, 12 insertions, 9 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 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 @@
1.\" $OpenBSD: EC_GROUP_new_curve_GFp.3,v 1.1 2025/04/25 19:57:12 tb Exp $ 1.\" $OpenBSD: EC_GROUP_new_curve_GFp.3,v 1.2 2025/04/26 07:07:29 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 25 2025 $ 17.Dd $Mdocdate: April 26 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
@@ -359,6 +359,7 @@ returns 1 on success and 0 on memory allocation failure, or if
359or 359or
360.Fa cofactor 360.Fa cofactor
361are larger than Hasse's theorem allows. 361are larger than Hasse's theorem allows.
362.Pp
362.Fn EC_GROUP_get0_generator 363.Fn EC_GROUP_get0_generator
363returns an internal pointer to the 364returns an internal pointer to the
364.Fa generator 365.Fa generator
@@ -369,20 +370,22 @@ if none was set on
369.Pp 370.Pp
370.Fn EC_GROUP_get_order 371.Fn EC_GROUP_get_order
371returns 1 on success or 0 on memory allocation failure or if the 372returns 1 on success or 0 on memory allocation failure or if the
372.Fa group Ns 's 373.Fa order
373order is set to 374is zero.
374.Fa zero . 375.Pp
376.Fn EC_GROUP_get_cofactor
377returns 1 on success or 0 on memory allocation failure or if the
378.Fa cofactor
379is zero.
375.Pp 380.Pp
376.Fn EC_GROUP_get_degree , 381.Fn EC_GROUP_get_degree ,
377.Fn EC_GROUP_order_bits ,
378and 382and
379.Fn EC_GROUP_get_cofactor 383.Fn EC_GROUP_order_bits
380return the number of bits in the 384return the number of bits in the
381.Fa group Ns 's 385.Fa group Ns 's
382.Fa p , 386.Fa p ,
383.Fa order ,
384and 387and
385.Fa cofactor , 388.Fa order ,
386respectively. 389respectively.
387.Sh SEE ALSO 390.Sh SEE ALSO
388.Xr BN_new 3 , 391.Xr BN_new 3 ,