EC_GROUP_set_curve

Sets the parameters of an ec curve defined by y^2 = x^3 + a*x + b (for GFp) or y^2 + xy = x^3 + ax^2 + b (for GF2m)

Synopsis

Declared in <openssl/ec.h>

int
EC_GROUP_set_curve(
    EC_GROUP* group,
    BIGNUM const* p,
    BIGNUM const* a,
    BIGNUM const* b,
    BN_CTX* ctx);

Return Value

1 on success and 0 if an error occurred

Parameters

NameDescription
groupEC_GROUP object
pBIGNUM with the prime number (GFp) or the polynomial defining the underlying field (GF2m)
aBIGNUM with parameter a of the equation
bBIGNUM with parameter b of the equation
ctxBN_CTX object (optional)