SecureRandom random)
throws InvalidAlgorithmParameterException
{
if (!(params instanceof ECParameterSpec))
{
throw new InvalidAlgorithmParameterException("parameter object not a ECParameterSpec");
}
this.ecParams = (ECParameterSpec)params;
param = new ECKeyGenerationParameters(new ECDomainParameters(ecParams.getCurve(), ecParams.getG(), ecParams.getN()), random);