def getDHGeneratorAndPrime(kexAlgorithm):
 kex = getKex(kexAlgorithm)
 return (kex.generator, kex.prime)

def getDHGeneratorAndPrime ( kexAlgorithm ) : kex = getKex ( kexAlgorithm ) return ( kex . generator , kex . prime )
get the generator and the prime to use in key exchange .