🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.security.pgp
Article #8

Re: Prime generation, a possible weakness in PGP?

#8
From: Andrew Haley
Date: Fri, 09 Oct 1992 16:01
29 lines
1927 bytes
Ari Huttunen (Ari.Huttunen@hut.fi) wrote:
: 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.) 

Large pseudoprimes (of any base) are very rare indeed.  RSADSI did
some experiments a couple of years ago to search for such numbers, and
found none (this is written up in one of the CRYPTO proceedings).

It is conjectured that the density of base 2 pseudoprimes of this size
is less than 10^-10 (this is from memory, so that figure might be
wrong.)  In any case, it is likely that a composite p or q would cause
messages to not decrypt correctly, a fact that you'd soon notice.

It might be worth using the Miller-Rabin test, in which no analogues
of Carmichael numbers exist, as a backup.  This would be easy to add
to the search procedure, but I don't think that it's really necessary.

Andrew.
Technical Details
Message-ID: <1992Oct9.160150.13377@eoc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!uwm.edu!caen!deccrl!news.crl.dec.com!rdg.dec.com!pa.dec.com!decwrl!eocomp!eo17!ahaley
References: <ARI.HUTTUNEN.92Sep27174550@laphroaig.cs.hut.fi>

Show Full Headers
Complete Article Headers
Newsgroups: alt.security.pgp,sci.crypt
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!uwm.edu!caen!deccrl!news.crl.dec.com!rdg.dec.com!pa.dec.com!decwrl!eocomp!eo17!ahaley
From: ahaley@eo17 (Andrew Haley)
Subject: Re: Prime generation, a possible weakness in PGP?
Message-ID: <1992Oct9.160150.13377@eoc.com>
Sender: news@eoc.com
Nntp-Posting-Host: eo17
Organization: EO, Inc.
X-Newsreader: TIN [version 1.1 PL6]
References: <ARI.HUTTUNEN.92Sep27174550@laphroaig.cs.hut.fi>
Distribution: alt
Date: Fri, 9 Oct 1992 16:01:50 GMT
Lines: 30