BN_is_word

Test whether a BIGNUM equals the single word w (including sign of zero).

Synopsis

Declared in <openssl/bn.h>

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

Return Value

1 if a equals w, or 0 otherwise.

Parameters

NameDescription
aValue to test.
wWord value to compare against.