Logo Search packages:      
Sourcecode: openssl version File versions  Download package

EC_GROUP* EC_GROUP_new_curve_GF2m ( const BIGNUM p,
const BIGNUM a,
const BIGNUM b,
BN_CTX ctx 

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

pBIGNUM with the polynomial defining the underlying field
aBIGNUM with the parameter a of the equation
bBIGNUM with the parameter b of the equation
ctxBN_CTX object (optional)
newly created EC_GROUP object with the specified parameters

Definition at line 126 of file ec_cvt.c.

References EC_GF2m_simple_method(), EC_GROUP_clear_free(), EC_GROUP_new(), EC_GROUP_new_curve_GF2m(), and EC_GROUP_set_curve_GF2m().

Referenced by EC_GROUP_new_curve_GF2m().

      const EC_METHOD *meth;
      EC_GROUP *ret;
      meth = EC_GF2m_simple_method();
      ret = EC_GROUP_new(meth);
      if (ret == NULL)
            return NULL;

      if (!EC_GROUP_set_curve_GF2m(ret, p, a, b, ctx))
            return NULL;

      return ret;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index