def test_prime(): assert MPI.prime(512).is_prime()
def srv(self, modulus_size, generator_size): return DHServer(MPI.prime(modulus_size), MPI.prime(generator_size))
def generator(self, generator_size): return MPI.prime(generator_size)
def cli(self, modulus_size, generator_size): return DHClient(MPI.prime(modulus_size), MPI.prime(generator_size))
def modulus(self, modulus_size): return MPI.prime(modulus_size)