eturns a NID identifying whether a trinomial or pentanomial is in use for the field. The function EC_GROUP_get_trinomial_basis() must only be called where f(x) is of the trinomial form, and returns the value of <b>k</b>. Similarly the function EC_GROUP_get_pentanomial_basis() must only be called where f(x) is of the pentanomial form, and returns the values of <b>k1</b>, <b>k2</b> and <b>k3</b> respectively.</p>

<h1 id="RETURN-VALUES">RETURN VALUES</h1>

<p>The following functions return 1 on success or 0 o