From eb2ff0408ac6e934e05db7ed4006855c018584f1 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() Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9874) --- 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 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. -- 2.25.1