From: Nicola Tuveri Date: Mon, 21 Oct 2019 13:07:22 +0000 (+0300) Subject: Fix doc for EC_GROUP_set_curve() X-Git-Tag: OpenSSL_1_1_1e~173 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=77f945bc9831862be7fdb35b438d494d054878c5;p=oweals%2Fopenssl.git 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) --- 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.