EC_POINT_mul

Computes r = generator * n + q * m

Synopsis

Declared in <openssl/ec.h>

int
EC_POINT_mul(
    EC_GROUP const* group,
    EC_POINT* r,
    BIGNUM const* n,
    EC_POINT const* q,
    BIGNUM const* m,
    BN_CTX* ctx);

Return Value

1 on success and 0 if an error occurred

Parameters

NameDescription
groupunderlying EC_GROUP object
rEC_POINT object for the result
nBIGNUM with the multiplier for the group generator (optional)
qEC_POINT object with the first factor of the second summand
mBIGNUM with the second factor of the second summand
ctxBN_CTX object (optional)