Code example for ECFieldF2m

0
            } 
            else 
            { 
                ks = new int[] { curveF2m.getK3(), curveF2m.getK2(), curveF2m.getK1() };
                 
                return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null);
            }  
        } 
    } 
 
    public static ECCurve convertCurve( 
        EllipticCurve ec)
    { 
        ECField field = ec.getField();
        BigInteger a = ec.getA();
        BigInteger b = ec.getB();
 
        if (field instanceof ECFieldFp)
        { 
            return new ECCurve.Fp(((ECFieldFp)field).getP(), a, b);
        }