BN_abs_is_word

Test whether the absolute value of a equals word w.

Synopsis

Declared in <openssl/bn.h>

int
BN_abs_is_word(
    BIGNUM const* a,
    unsigned long const w);

Return Value

1 if |a| equals w, or 0 otherwise.

Parameters

NameDescription
aBIGNUM to test (sign is ignored).
wSingle-word value to compare against.