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

Name

Description

a

First value (NULL treated as zero).

b

Second value (NULL treated as zero).

Created with MrDocs