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

Name

Description

r

Destination product.

a

First multiplicand.

b

Second multiplicand.

ctx

BN_CTX scratch space, or NULL.

Created with MrDocs