ECFieldElement.F2m element = (F2m)f;  return new DEROctetString(mToByteArray(element.getM()));
int byteCount = (((ECFieldElement.F2m)f).getM() % 8) + 1; byte[] paddedBigInteger = converter.integerToBytes(f.toBigInteger(), byteCount);  return new DEROctetString(paddedBigInteger);
    public DERObject toASN1Object()    {        if (f instanceof ECFieldElement.Fp)        {            BigInteger q = ((ECFieldElement.Fp)f).getQ();            int byteCount = converter.getQLength(q);            byte[] paddedBigInteger = converter.integerToBytes(f.toBigInteger(), byteCount);                return new DEROctetString(paddedBigInteger);        }        else        {            ECFieldElement.F2m element = (F2m)f;                        return new DEROctetString(mToByteArray(element.getM()));        }    }