{
if (key instanceof BCMcEliecePublicKey)
{
BCMcEliecePublicKey k = (BCMcEliecePublicKey)key;
return new McEliecePublicKeyParameters(k.getOIDString(), k.getN(), k.getT(), k.getG(), k.getMcElieceParameters());
}
throw new InvalidKeyException("can't identify McEliece public key: " + key.getClass().getName());
}