BN_GF2m_mod_arr

Reduce a modulo an irreducible GF(2^m) polynomial given as an int array: r = a mod p.

Synopsis

Declared in <openssl/bn.h>

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

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
rDestination.
aValue to reduce.
pDescending exponent list of the irreducible, terminated by -1 (and ending in 0).