mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2020-08-25, 22:24   #232
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

23×1,223 Posts
Default

Quote:
Originally Posted by chalsall View Post
Sweet! So risk eliminated at no (or very little) computational cost (if I'm understanding correctly).
1 more thing to document for a paper.
Uncwilly is offline   Reply With Quote
Old 2020-08-25, 22:27   #233
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·53·71 Posts
Default

Quote:
Originally Posted by chalsall View Post
Sweet! So risk eliminated at no (or very little) computational cost (if I'm understanding correctly).
You understand correctly. The downside is the burden falls on the one resource that is most limited -- the server. For most proofs it requires an extra 100 to 1000 multiplications. This morning I had to increase from 2 queues doing proof processing to 3. The server has 24 cores, so I suppose we're still OK.

I do have other options to reduce server workload -- namely, decreasing the hash size from 64 to 48 bits. This would save about 300 multiplications per proof. It's still early in evaluating how well the server is coping. So, no changes for now.
Prime95 is offline   Reply With Quote
Old 2020-08-26, 00:59   #234
Uncle Lumpy
 
Mar 2017

1410 Posts
Default

Quote:
Originally Posted by Prime95 View Post
You understand correctly. The downside is the burden falls on the one resource that is most limited -- the server. For most proofs it requires an extra 100 to 1000 multiplications. This morning I had to increase from 2 queues doing proof processing to 3. The server has 24 cores, so I suppose we're still OK.

I do have other options to reduce server workload -- namely, decreasing the hash size from 64 to 48 bits. This would save about 300 multiplications per proof. It's still early in evaluating how well the server is coping. So, no changes for now.
Would it be possible (without too much work) to distribute the "server" portion of this among several volunteer machines? I realize it might take a specialty "pipe" to the Internet and such so I'm just sort of thinking out loud. Please ignore if this has already been discussed or if this is a totally inane question.

I believe the FAH folks had to do something like this when they were getting crushed by participation requests for COVID-19 work.

Lumpy

Last fiddled with by Uncle Lumpy on 2020-08-26 at 01:01 Reason: Thought of additional point
Uncle Lumpy is offline   Reply With Quote
Old 2020-08-26, 01:23   #235
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·53·71 Posts
Default

Quote:
Originally Posted by Uncle Lumpy View Post
Would it be possible (without too much work) to distribute the "server" portion of this among several volunteer machines?
In short, no. The server's work is pretty modest -- about 2000 multiplications. But, the key benefit it provides is security. Part of it's work makes it impossible to fake a certification -- even if you have the complete original proof file. If this critical step were farmed out then faking certifications would be easy -- all you would need to do is collude with the person who did the farmed out server work.

Right now, the biggest weakness in the whole proof scheme is someone infiltrating the server's SQL database. Of course, if someone did that they could wreak all kinds of havoc.
Prime95 is offline   Reply With Quote
Old 2020-08-26, 03:09   #236
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

7×1,373 Posts
Default

Quote:
Originally Posted by Prime95 View Post
The attack involves multiplying the final Fermat PRP result (for a prime this is one) by a root-of-unity. Minus one is one such possible root.
Wait a moment, if you got a prime, then there are no other roots of unity except 1 and -1, which is (in the non-modular world) either 1, or 2^p-2, and this is easy to spot without any squaring. Or not?

For example, 2^13-1=8191 has only two roots of unity, respective 1 and -1=8190 (in the modular world). Squaring any of them (mod 8191) you get 1, and there are no other numbers with this property. But 2^11-1=2047, because it has 2 prime factors, it has 4 such roots, 1, 622, -622=1425, and -1=2046. Squaring any of these (mod 2047) you get 1.

Similar for higher roots.

It seems to me there is no way to "game" the system here, if the system is aware of it, it can kick you in the butt with a simple calculus.

Last fiddled with by LaurV on 2020-08-26 at 03:12
LaurV is offline   Reply With Quote
Old 2020-08-26, 04:18   #237
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

2·19·163 Posts
Default

Quote:
Originally Posted by LaurV View Post
Wait a moment, if you got a prime, then there are no other roots of unity except 1 and -1 ...
903 = 1 mod 8191
retina is online now   Reply With Quote
Old 2020-08-26, 04:33   #238
patnashev
 
"Pavel Atnashev"
Mar 2020

548 Posts
Default

There are only two square roots of unity. A single squaring is enough to turn them into 1. But phi(N)=N-1 can be divisible by 3, so there could be three cubic roots of unity. Raising to 3rd power is enough to burn them too. Generally, you need to find all small divisors of N-1 and raise the result to those powers to detect the attack. The limit can be selected depending on the number being tested. It's trivial to have all N-1 divisors <2^64 of Proth numbers. But you need to actually look for N-1 divisors of c=-1 numbers, so it's practical to select lower limit like 2^24 or 2^32.
patnashev is online now   Reply With Quote
Old 2020-08-26, 04:47   #239
patnashev
 
"Pavel Atnashev"
Mar 2020

22·11 Posts
Default

And it's not enough to only consider prime factors, their powers are important too.
14773 != 1 (mod 8191)
14779 = 1 (mod 8191)

All 9th roots of unity mod 8191: {1, 90, 1477, 1874, 2723, 4840, 6128, 7531, 8100} Six of them are primitive roots (do not become 1 sooner).

Last fiddled with by patnashev on 2020-08-26 at 04:55
patnashev is online now   Reply With Quote
Old 2020-08-26, 05:00   #240
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

140628 Posts
Default

Quote:
Originally Posted by patnashev View Post
And it's not enough to only consider prime factors, their powers are important too.
And any composite power also.

15102 != 1 (mod 8191)
15105 != 1 (mod 8191)
151010 = 1 (mod 8191)
retina is online now   Reply With Quote
Old 2020-08-26, 05:06   #241
patnashev
 
"Pavel Atnashev"
Mar 2020

22·11 Posts
Default

Yes, that's why we're talking about divisors of N-1. But composite powers are dealt with automatically when you compute the "security" exponent.
patnashev is online now   Reply With Quote
Old 2020-08-26, 05:08   #242
patnashev
 
"Pavel Atnashev"
Mar 2020

22×11 Posts
Default

Security exponent for 8191 is 2 * 3 * 3 * 5 * 7 * 13
patnashev is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
phi function rula Homework Help 3 2017-01-18 01:41
delay in crediting? ixfd64 PrimeNet 7 2008-10-20 20:45
Why delay between posts? JHagerson Forum Feedback 1 2006-05-13 21:30
Minimum delay between server connections vaughan ElevenSmooth 5 2005-09-08 17:17
Stats delay ltd Prime Sierpinski Project 10 2005-08-08 13:38

All times are UTC. The time now is 17:31.


Fri Jul 16 17:31:56 UTC 2021 up 49 days, 15:19, 1 user, load averages: 1.70, 1.63, 1.61

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.