if (fieldID.getIdentifier().equals(prime_field)) { BigInteger      q = ((DERInteger)fieldID.getParameters()).getValue(); X9FieldElement  x9A = new X9FieldElement(true, q, (ASN1OctetString)seq.getObjectAt(0)); X9FieldElement  x9B = new X9FieldElement(true, q, (ASN1OctetString)seq.getObjectAt(1)); curve = new ECCurve.Fp(q, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger()); } else { throw new RuntimeException("not implemented"); }  if (seq.size() == 3) { seed = ((DERBitString)seq.getObjectAt(2)).getBytes(); }
this.curve = curve; this.seed = null; setFieldIdentifier();
    public X9Curve(        X9FieldID     fieldID,        ASN1Sequence  seq)    {        if (fieldID.getIdentifier().equals(prime_field))        {            BigInteger      q = ((DERInteger)fieldID.getParameters()).getValue();            X9FieldElement  x9A = new X9FieldElement(true, q, (ASN1OctetString)seq.getObjectAt(0));            X9FieldElement  x9B = new X9FieldElement(true, q, (ASN1OctetString)seq.getObjectAt(1));            curve = new ECCurve.Fp(q, x9A.getValue().toBigInteger(), x9B.getValue().toBigInteger());        }        else        {            throw new RuntimeException("not implemented");        }        if (seq.size() == 3)        {            seed = ((DERBitString)seq.getObjectAt(2)).getBytes();        }    }