NODE cadbbe25Knuth Volume 2 Page 379
trollins@debbie.telos.com (Tom Rollins)Tue, 30 Aug 94 12:37:15 PDT
Hello,
I have a little question about some math algorithms.
People have talked in alt.security.pgp about the Miller
Test and the Miller-Rabin Test.
I am getting ready to improve PGP's testing of potential
prime numbers and have been looking for a good algorithm.
After reading some in Knuth Volume 2, I have come across
Algorithm P on page 379. Is this algorithm in fact the
Miller-Rabin Test ???
Thanks,
Tom Rollins
<trollins@debbie.telos.com>
NODE 02302fafRe: Knuth Volume 2 Page 379
Karl Lui Barrus <klbarrus@owlnet.rice.edu>Tue, 30 Aug 94 13:38:06 PDT
Tom Rollins wrote:
>I am getting ready to improve PGP's testing of potential
>prime numbers and have been looking for a good algorithm.
Heh, I thought this same thing a few months ago. As it turns out,
Miller-Rabin and a modified Lucas test has already been coded up for
the next release of PGP.
>After reading some in Knuth Volume 2, I have come across
>Algorithm P on page 379. Is this algorithm in fact the
>Miller-Rabin Test ???
I don't have a copy of this handy, or I'd tell you. Basically,
Miller-Rabin is similar Fermat except you continue testing and divide
by two. The quick, dirty, and ugly explanation ;)
--
Karl L. Barrus: klbarrus@owlnet.rice.edu
2.3: 5AD633; D1 59 9D 48 72 E9 19 D5 3D F3 93 7E 81 B5 CC 32
2.6: 088C8F21; 97 73 9E 8B 98 3E DD B5 E8 97 64 7E 20 95 60 D9
"One man's mnemonic is another man's cryptography" - K. Cooper