[#BN_GF2m_arr2poly]
= BN&lowbar;GF2m&lowbar;arr2poly
:mrdocs:

Build a GF(2&circ;m) irreducible polynomial BIGNUM from an exponent index array&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;GF2m&lowbar;arr2poly(
    int const p[],
    xref:BIGNUM.adoc[BIGNUM]* a);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Descending list of set&hyphen;bit indices p&lsqb;0&rsqb;&gt; p&lsqb;1&rsqb;&gt; &period;&period;&period; &gt; p&lsqb;k&rsqb;&equals;&equals; 0, terminated by &hyphen;1&period;
| *a*
| Destination BIGNUM cleared then filled with the polynomial representation&period;
|===


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