Subtract unsigned BIGNUMs: r = ab (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

Name

Description

r

Destination difference (non‐negative).

a

Minuend.

b

Subtrahend; must not exceed a.

Created with MrDocs