[#BN_GF2m_poly2arr] = BN_GF2m_poly2arr :mrdocs: Convert a GF(2ˆm) polynomial BIGNUM into a descending exponent index array. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_GF2m_poly2arr( xref:BIGNUM.adoc[BIGNUM] const* a, int p[], int max); ---- == Return Value Number of exponents written (excluding ‐1), or 0 if `max` is too small / on error. == Parameters [cols="1,4"] |=== | Name| Description | *a* | Polynomial whose set bits become exponents. | *p* | Destination array of size at least `max;` filled then terminated with ‐1. | *max* | Capacity of `p` including room for the ‐1 terminator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#