BN_GF2m_arr2poly

Build a GF(2^m) irreducible polynomial BIGNUM from an exponent index array.

Synopsis

Declared in <openssl/bn.h>

int
BN_GF2m_arr2poly(
    int const p[],
    BIGNUM* a);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
pDescending list of set-bit indices p[0]> p[1]> ... > p[k]== 0, terminated by -1.
aDestination BIGNUM cleared then filled with the polynomial representation.