BN_cmp

Compare two BIGNUMs considering sign.

Synopsis

Declared in <openssl/bn.h>

int
BN_cmp(
    BIGNUM const* a,
    BIGNUM const* b);

Return Value

-1 if a < b, 0 if equal, or 1 if a > b.

Parameters

NameDescription
aFirst value (NULL treated as zero).
bSecond value (NULL treated as zero).