Article View: alt.security.pgp
Article #4Re: Prime generation, a possible weakness in PGP?
From: Nick Maclaren
Date: Wed, 07 Oct 1992 16:08
Date: Wed, 07 Oct 1992 16:08
29 lines
1807 bytes
1807 bytes
In article <ARI.HUTTUNEN.92Sep27174550@laphroaig.cs.hut.fi>, Ari.Huttunen@hut.fi (Ari Huttunen) writes: |> I am concerned about the primeness of the prime numbers |> that PGP generates. This is how they are done: |> - first throw away numbers that are divisible |> by small primes |> - then use Fermat's theorem 4 times |> (Fermat's theorem: if b**(n-1) != 1 (mod n), then |> 'n' cannot be a prime. This requires that 'b' and 'n' |> are relatively prime.) |> |> My concern is the number of rounds of the Fermat test. It's only 4. |> I would not trust this level of primeness. Also, the resulting |> number might be a Carmichael number. (So it would pass any number |> of such tests.) It would be a lot better (and very little more expensive) to use the strong pseudoprime test. This removes powers of 2 from (n-1) and then checks that the sequences of residues goes ..., -1, 1, ..., 1 as the result is squared. There are no strong Carmichael numbers. See any good book on number theory for the details. Nick Maclaren University of Cambridge Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cus.cam.ac.uk Tel.: +44 223 334761 Fax: +44 223 334679
Technical Details
Message-ID:
<1992Oct7.160848.4294@infodev.cam.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!agate!doc.ic.ac.uk!uknet!pavo.csi.cam.ac.uk!camcus!nmm1References:
<ARI.HUTTUNEN.92Sep27174550@laphroaig.cs.hut.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!agate!doc.ic.ac.uk!uknet!pavo.csi.cam.ac.uk!camcus!nmm1 From: nmm1@cus.cam.ac.uk (Nick Maclaren) Newsgroups: alt.security.pgp,sci.crypt Subject: Re: Prime generation, a possible weakness in PGP? Message-ID: <1992Oct7.160848.4294@infodev.cam.ac.uk> Date: 7 Oct 92 16:08:48 GMT References: <ARI.HUTTUNEN.92Sep27174550@laphroaig.cs.hut.fi> Sender: news@infodev.cam.ac.uk (USENET news) Distribution: alt Organization: U of Cambridge, England Lines: 29 Nntp-Posting-Host: bootes.cus.cam.ac.uk