Multiply then reduce in GF(2ˆm): r = (a * b) mod p.

Synopsis

Declared in <openssl/bn.h>

int
BN_GF2m_mod_mul(
    BIGNUM* r,
    BIGNUM const* a,
    BIGNUM const* b,
    BIGNUM const* p,
    BN_CTX* ctx);

Return Value

1 on success, or 0 on error.

Parameters

Name

Description

r

Destination product.

a

First multiplicand.

b

Second multiplicand.

p

Irreducible modulus polynomial.

ctx

BN_CTX scratch space.

Created with MrDocs