public static DHParameters getParams(int group) {

		BigInteger p = DHParameters.GROUP_2;
		BigInteger g = DHParameters.DH_G;
		if (group == 1) {
			p = DHParameters.GROUP_1;
			g = DHParameters.GROUP1_G;
		} else if (group == 2)
			p = DHParameters.GROUP_2;
		else if (group == 3)
			p = DHParameters.GROUP_5;
		else if (group == 14)
			p = DHParameters.GROUP_14;
		else if (group == 15)
			p = DHParameters.GROUP_15;
		else if (group == 16)
			p = DHParameters.GROUP_16;
		else if (group == 17)
			p = DHParameters.GROUP_17;
		else if (group == 18)
			p = DHParameters.GROUP_18;

		return new DHParameters(p, g, null);
	}