}
else if (format.equals("ASN.1"))
{
ByteArrayInputStream bIn = new ByteArrayInputStream(params);
ASN1InputStream aIn = new ASN1InputStream(bIn);
RC2CBCParameter p = RC2CBCParameter.getInstance(aIn.readObject());
if (p.getRC2ParameterVersion() != null)
{
parameterVersion = p.getRC2ParameterVersion().intValue();
}
iv = p.getIV();
return;
}
throw new IOException("Unknown parameters format in IV parameters object");