ByteArrayOutputStream bOut = new ByteArrayOutputStream();
ASN1OutputStream aOut = new ASN1OutputStream(bOut);
for (int i = 0; i != values.length; i++)
{
aOut.writeObject(values[i]);
}
DERObject[] readValues = new DERObject[values.length];
if (!isSameAs(bOut.toByteArray(), data))