assertEquals(DiffieHellmanSession.DEFAULT_MODULUS_HEX.length() * 4, parameterSpec.getP().bitLength());
}
public void testGetDefaultParameterSha256() throws Exception
{
DHParameterSpec parameterSpec = DiffieHellmanSession.getDefaultParameter();
assertNotNull(parameterSpec);
assertEquals(2, parameterSpec.getG().intValue());
assertEquals(DiffieHellmanSession.DEFAULT_MODULUS_HEX.length() * 4, parameterSpec.getP().bitLength());
}