EC_POINT_dbl

Computes the double of a EC_POINT

Synopsis

Declared in <openssl/ec.h>

int
EC_POINT_dbl(
    EC_GROUP const* group,
    EC_POINT* r,
    EC_POINT const* a,
    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 (r = 2 * a)
aEC_POINT object
ctxBN_CTX object (optional)