EC_GROUP_set_curve_GF2m

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

version(!LIBRESSL_INTERNAL && !OPENSSL_NO_EC2M)
extern (C) nothrow @nogc
int
EC_GROUP_set_curve_GF2m

Parameters

group .EC_GROUP*

EC_GROUP object

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

BIGNUM with the polynomial defining the underlying field

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