[#EC_GROUP_get_trinomial_basis]
= EC&lowbar;GROUP&lowbar;get&lowbar;trinomial&lowbar;basis
:mrdocs:

Return the trinomial basis degree k for a characteristic&hyphen;2 curve group&period;

== Synopsis

Declared in `&lt;openssl&sol;ec&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EC&lowbar;GROUP&lowbar;get&lowbar;trinomial&lowbar;basis(
    xref:EC_GROUP.adoc[EC&lowbar;GROUP] const* group,
    unsigned int* k);
----

== Return Value

1 on success, or 0 if `group` does not use a trinomial basis&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *group*
| EC&lowbar;GROUP defined over GF(2&circ;m) with a trinomial field polynomial&period;
| *k*
| Receives the middle term degree of x&circ;m &plus; x&circ;k &plus; 1&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
