try
{
ASN1Sequence seq = (ASN1Sequence) ASN1Object.fromByteArray(params);
this.currentSpec = GOST3410ParameterSpec.fromPublicKeyAlg(
new GOST3410PublicKeyAlgParameters(seq));
}
catch (ClassCastException e)
{
throw new IOException("Not a valid GOST3410 Parameter encoding.");
}