|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Fermat's primality test vs. Miller-Rabin |  |
- To: [EMAIL PROTECTED]
- Subject: Fermat's primality test vs. Miller-Rabin
- From: "Travis H." <[EMAIL PROTECTED]>
- Date: Tue, 8 Nov 2005 05:05:05 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ZYX3NwKfN0VYu0PVOZzpgOFhULBPmwK2ol6Bi5Qmo/8xuBH5ZQbhvttIxIUYydmXCWuxw09tfgy5xHmH3LU/ZYwFNgnJ0JcfG0xUBxNvYJ9bBDtxuTT315asKcDGhee0eJhmQsnkZHEh+ZzLH72cWetvfneXtq4drVlRxWnogXg=
- Sender: [EMAIL PROTECTED]
 |
| |
In "Practical Cryptography", Schneier states that the you can prove
that when n is not a prime, a certain property of a mod n holds for at
most 25% of possible values 1 < a < n. He later states that Fermat's
test can be fooled by Carmichael numbers, and finally he basically
says that Miller-Rabin is based on Fermat's test.
It appears that Fermat's test can be fooled by Carmichael numbers,
whereas Miller-Rabin is immune, but I'm not sure why. It appears that
M-R tests that just before the squaring of a that produces a residue
of 1, is the residue n-1. Apparently that's not true for most bases
of Carmichael numbers. Is that the distinction that makes
Miller-Rabin a stronger primality test?
It's amazing how many words that took to state, and I didn't even
specify the squaring process.
--
http://www.lightconsulting.com/~travis/ -><-
"We already have enough fast, insecure systems." -- Schneier & Ferguson
GPG fingerprint: 50A1 15C5 A9DE 23B9 ED98 C93E 38E9 204A 94C2 641B
---------------------------------------------------------------------
The Cryptography Mailing List
Unsubscribe by sending "unsubscribe cryptography" to [EMAIL PROTECTED]
| |