return new X509EncodedKeySpec(key.getEncoded());
}
else if (McEliecePublicKeySpec.class.isAssignableFrom(keySpec))
{
BCMcEliecePublicKey pubKey = (BCMcEliecePublicKey)key;
return new McEliecePublicKeySpec(OID, pubKey.getN(), pubKey.getT(),
pubKey.getG());
}
}
else
{