EC_GROUP_new_curve_GFp

Creates a new EC_GROUP object with the specified parameters defined over GFp (defined by the equation y^2 = x^3 + a*x + b)

Synopsis

Declared in <openssl/ec.h>

EC_GROUP*
EC_GROUP_new_curve_GFp(
    BIGNUM const* p,
    BIGNUM const* a,
    BIGNUM const* b,
    BN_CTX* ctx);

Return Value

newly created EC_GROUP object with the specified parameters

Parameters

NameDescription
pBIGNUM with the prime number
aBIGNUM with the parameter a of the equation
bBIGNUM with the parameter b of the equation
ctxBN_CTX object (optional)