BN_mul

Multiply two BIGNUMs: r = a * b.

Synopsis

Declared in <openssl/bn.h>

int
BN_mul(
    BIGNUM* r,
    BIGNUM const* a,
    BIGNUM const* b,
    BN_CTX* ctx);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
rDestination product.
aFirst multiplicand.
bSecond multiplicand.
ctxBN_CTX scratch space, or NULL.