1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
7 Parsing for the moduli file, which contains Diffie-Hellman prime groups.
9 Maintainer: Paul Swartz
12 def parseModuliFile(filename):
13 lines = open(filename).readlines()
17 if not l or l[0]=='#':
19 tim, typ, tst, tri, size, gen, mod = l.split()
23 if not primes.has_key(size):
25 primes[size].append((gen, mod))