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

Name

Description

p

Descending list of set‐bit indices p[0]> p[1]> ... > p[k]== 0, terminated by ‐1.

a

Destination BIGNUM cleared then filled with the polynomial representation.

Created with MrDocs