BN_GF2m_mod_inv_arr

Compute the inverse of b modulo an irreducible GF(2^m) polynomial given as an int array.

Synopsis

Declared in <openssl/bn.h>

int
BN_GF2m_mod_inv_arr(
    BIGNUM* r,
    BIGNUM const* b,
    int const p[],
    BN_CTX* ctx);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
rResult BIGNUM receiving (1 / b) mod p(x).
bValue to invert (must be non-zero modulo p).
pIrreducible polynomial as a descending list of set-bit indices terminated by -1.
ctxBN_CTX scratch space.