P_get_trinomial_basis() and EC_GROUP_get_pentanomial_basis() should only be called for curves defined over an F2^m field. Addition and multiplication operations within an F2^m field are performed using an irreducible polynomial function f(x). This function is either a trinomial of the form:</p>

<p>f(x) = x^m + x^k + 1 with m &gt; k &gt;= 1</p>

<p>or a pentanomial of the form:</p>

<p>f(x) = x^m + x^k3 + x^k2 + x^k1 + 1 with m &gt; k3 &gt; k2 &gt; k1 &gt;= 1</p>

<p>The function EC_GROUP_get_basis_type() r