trevp/tlslite — pull request #20 by dkg (2014-05-15 06:00:15+00:00)
Title: ensure all entries in tlslite.utils.cryptomath.sieve are prime

tlslite.utils.cryptomath.sieve is supposed to be all primes below 1000.

Currently, it contains the composite value 961 (31 * 31), due to an
off-by-one error in the makeSieve function.

I don't think this is a security vulnerability -- it just makes
tlslite's primality test marginally slower than it could be. But if
someone was using the sieve to do anything else that relies on its
members being prime, they would be surprised to find 961 in there.

This fix corrects the issue.