{
if (!(params instanceof RainbowParameterSpec))
{
throw new InvalidAlgorithmParameterException("parameter object not a RainbowParameterSpec");
}
RainbowParameterSpec rainbowParams = (RainbowParameterSpec)params;
param = new RainbowKeyGenerationParameters(random, new RainbowParameters(rainbowParams.getVi()));
engine.init(param);
initialised = true;
}