BN_div_word

Divide a by word w in place and return the remainder.

Synopsis

Declared in <openssl/bn.h>

unsigned long
BN_div_word(
    BIGNUM* a,
    unsigned long w);

Return Value

Remainder, or (BN_ULONG)-1 on error (for example w is 0).

Parameters

NameDescription
aDividend updated to the quotient (sign preserved).
wNon-zero divisor word.