EC_GROUP_set_curve_GFp

Sets the parameter of a ec over GFp defined by y^2 = x^3 + a*x + b

version(!LIBRESSL_INTERNAL)
extern (C) nothrow @nogc
int
EC_GROUP_set_curve_GFp

Parameters

group .EC_GROUP*

EC_GROUP object

p const(libressl_d.openssl.ossl_typ.BIGNUM)*

BIGNUM with the prime number

a const(libressl_d.openssl.ossl_typ.BIGNUM)*

BIGNUM with parameter a of the equation

b const(libressl_d.openssl.ossl_typ.BIGNUM)*

BIGNUM with parameter b of the equation

ctx libressl_d.openssl.ossl_typ.BN_CTX*

BN_CTX object (optional)

Return Value

Type: int

1 on success and 0 if an error occured

Meta