BN_GF2m_mod_div_arr

Compute r = (a / b) in GF(2^m) with reduction polynomial p[].

Synopsis

Declared in <openssl/bn.h>

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

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
rDestination quotient.
aDividend.
bDivisor (must be nonzero in the field).
pIrreducible polynomial as a descending exponent array terminated by -1.
ctxBN_CTX scratch space.