*/
public X9FieldID(int m, int k1, int k2, int k3)
{
this.id = characteristic_two_field;
ASN1EncodableVector fieldIdParams = new ASN1EncodableVector();
fieldIdParams.add(new DERInteger(m));
if (k2 == 0)
{
fieldIdParams.add(tpBasis);
fieldIdParams.add(new DERInteger(k1));
}
else
{
fieldIdParams.add(ppBasis);
ASN1EncodableVector pentanomialParams = new ASN1EncodableVector();
pentanomialParams.add(new DERInteger(k1));
pentanomialParams.add(new DERInteger(k2));
pentanomialParams.add(new DERInteger(k3));
fieldIdParams.add(new DERSequence(pentanomialParams));
}
this.parameters = new DERSequence(fieldIdParams);
}