BN_usub

Subtract unsigned BIGNUMs: r = a - b (requires a >= b).

Synopsis

Declared in <openssl/bn.h>

int
BN_usub(
    BIGNUM* r,
    BIGNUM const* a,
    BIGNUM const* b);

Return Value

1 on success, or 0 if a < b or on error.

Parameters

NameDescription
rDestination difference (non-negative).
aMinuend.
bSubtrahend; must not exceed a.