From 77f945bc9831862be7fdb35b438d494d054878c5 Mon Sep 17 00:00:00 2001 From: Nicola Tuveri Date: Mon, 21 Oct 2019 16:07:22 +0300 Subject: [PATCH] Fix doc for EC_GROUP_set_curve() (cherry picked from commit eb2ff0408ac6e934e05db7ed4006855c018584f1) Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10235) --- doc/man3/EC_GROUP_new.pod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/man3/EC_GROUP_new.pod b/doc/man3/EC_GROUP_new.pod index 4269993ecb..c80b191785 100644 --- a/doc/man3/EC_GROUP_new.pod +++ b/doc/man3/EC_GROUP_new.pod @@ -82,10 +82,12 @@ B and EC_GROUP_new_from_ecpkparameters() will create a group from the specific PK B. EC_GROUP_set_curve() sets the curve parameters B

, B and B. For a curve -over Fp B is the prime for the field. For a curve over F2^m B

represents +over Fp B

is the prime for the field. For a curve over F2^m B

represents the irreducible polynomial - each bit represents a term in the polynomial. Therefore there will either be three or five bits set dependent on whether the polynomial is a trinomial or a pentanomial. +In either case, B and B represents the coefficients a and b from the +relevant equation introduced above. EC_group_get_curve() obtains the previously set curve parameters. -- 2.25.1