提交 77f945bc 编写于 作者: N Nicola Tuveri

Fix doc for EC_GROUP_set_curve()

(cherry picked from commit eb2ff0408ac6e934e05db7ed4006855c018584f1)
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10235)
上级 383ba7ad
...@@ -82,10 +82,12 @@ B<params> and EC_GROUP_new_from_ecpkparameters() will create a group from the ...@@ -82,10 +82,12 @@ B<params> and EC_GROUP_new_from_ecpkparameters() will create a group from the
specific PK B<params>. specific PK B<params>.
EC_GROUP_set_curve() sets the curve parameters B<p>, B<a> and B<b>. For a curve EC_GROUP_set_curve() sets the curve parameters B<p>, B<a> and B<b>. For a curve
over Fp B<b> is the prime for the field. For a curve over F2^m B<p> represents over Fp B<p> is the prime for the field. For a curve over F2^m B<p> represents
the irreducible polynomial - each bit represents a term in the polynomial. 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 Therefore there will either be three or five bits set dependent on whether the
polynomial is a trinomial or a pentanomial. polynomial is a trinomial or a pentanomial.
In either case, B<a> and B<b> represents the coefficients a and b from the
relevant equation introduced above.
EC_group_get_curve() obtains the previously set curve parameters. EC_group_get_curve() obtains the previously set curve parameters.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册