1
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2
# See LICENSE for details.
6
"""Parsing for the moduli file, which contains Diffie-Hellman prime groups.
8
This module is unstable.
10
Maintainer: U{Paul Swartz<mailto:z3p@twistedmatrix.com>}
13
def parseModuliFile(filename):
14
lines = open(filename).readlines()
18
if not l or l[0]=='#':
20
tim, typ, tst, tri, size, gen, mod = l.split()
24
if not primes.has_key(size):
26
primes[size].append((gen, mod))