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-3.0.0-alpha1~1091 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eb2ff0408ac6e934e05db7ed4006855c018584f1;p=oweals%2Fopenssl.git Fix doc for EC_GROUP_set_curve() Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9874) --- diff --git a/doc/man3/EC_GROUP_new.pod b/doc/man3/EC_GROUP_new.pod index 39dd352af4..08bbd80b08 100644 --- a/doc/man3/EC_GROUP_new.pod +++ b/doc/man3/EC_GROUP_new.pod @@ -98,10 +98,12 @@ EC_GROUP_new() is the same as EC_GROUP_new_ex() except that the library context used is always the default library context. 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.