mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-07-19, 22:54   #133
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

110100100002 Posts
Default

Quote:
That's an RNG, not a PRNG. (That site actually calls them TRNGs, a synonym for RNGs.)
I wished to examine whether or not there was any observable difference between random.org and PARI's random(n) function.
3.14159 is offline   Reply With Quote
Old 2010-07-19, 22:59   #134
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
I wished to examine whether or not there was any observable difference between random.org and PARI's random(n) function.
If you look at the link I gave when I explained how Pari generates random numbers, you'll see there's a description of the battery of tests passed by it (e.g., Crush). This is a better comparison then you'd be able to throw together in a few minutes (or days!).

Last fiddled with by CRGreathouse on 2010-07-19 at 23:05
CRGreathouse is offline   Reply With Quote
Old 2010-07-19, 23:03   #135
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

Quote:
If you look at the link I gave when I explained how Pari generates random numbers, you'll see there's a description of the battery of tests passed by it. This is a better comparison then you'd be able to throw together in a few minutes (or days!).
http://wims.unice.fr/wims/, I think, uses PARI for its computations.

Its warning on the random primes generator:
Warning: It is strongly discouraged to use this tool for the need of cryptology in real situations. Primes having travelled through the Internet have no confidentiality.

Quote:
Primes having travelled through the Internet have no confidentiality.
Which is why they are to be proven prime first.

P.S: Congrats on having a prime-numbered- No wait, that's 17 * 61..

Last fiddled with by 3.14159 on 2010-07-19 at 23:07
3.14159 is offline   Reply With Quote
Old 2010-07-19, 23:07   #136
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Strictly, that's not relevant here: that speaks to the possibility of a side-channel attack (reading the numbers as they're passed through TCP) rather than the weakness of the PRNG itself. But the same warning (with different reasoning) could be applied to the PRNG since it's not designed to be cryptographically secure.

Quote:
Originally Posted by 3.14159 View Post
Which is why they are to be proven prime first.
Huh? The problem is that someone can read them, not that they're wrong. But sure, prove primality if you like.

Actually, for practical cryptographic algorithms, primality is almost never proven -- random tests like Miller-Rabin are used instead.

Last fiddled with by CRGreathouse on 2010-07-19 at 23:09
CRGreathouse is offline   Reply With Quote
Old 2010-07-19, 23:09   #137
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

Quote:
Strictly, that's not relevant here: that speaks to the possibility of a side-channel attack.
Ah. The non-math attacks. (Ex: Timing attack)

Easier than the math-based attacks (Impossible to do.)

Quote:
Actually, for practical cryptographic algorithms, primality is almost never proven -- random tests like Miller-Rabin are used instead.
Don't you mean, PRP tests?

Last fiddled with by 3.14159 on 2010-07-19 at 23:12
3.14159 is offline   Reply With Quote
Old 2010-07-19, 23:24   #138
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Don't you mean, PRP tests?
Random was what I meant, but I could have said PrP tests or compositeness tests had I desired.
CRGreathouse is offline   Reply With Quote
Old 2010-07-19, 23:38   #139
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

@CRG: Do you know a simple program that can be written to check for an SPRP pseudoprime list for bases 2, 3, and 5?
3.14159 is offline   Reply With Quote
Old 2010-07-20, 00:25   #140
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
@CRG: Do you know a simple program that can be written to check for an SPRP pseudoprime list for bases 2, 3, and 5?
I posted one not long ago -- search for isSPRP.
CRGreathouse is offline   Reply With Quote
Old 2010-07-20, 04:14   #141
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

1078610 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
How would they be "predictable"? How does one suddenly become a crystal ball?
Read up about the famous Netscape attack and the like. I know you don't like Wikipedia references so you should go directly to its referenced sources.
Quote:
Originally Posted by 3.14159 View Post
And, the risk of an attacker actually succeeding is minimal, as most people are idiots when it comes to computers. (Unfortunately, that set of people includes me.)
Unfortunately (or should that be fortunately?) not everyone is an idiot like you. It only takes one competent person to implement an attack and then idiots can use that implementation to succeed with high probability.


Paul
xilman is online now   Reply With Quote
Old 2010-07-20, 04:20   #142
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2·5,393 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
http://wims.unice.fr/wims/, I think, uses PARI for its computations.

Its warning on the random primes generator:
Warning: It is strongly discouraged to use this tool for the need of cryptology in real situations. Primes having travelled through the Internet have no confidentiality.


Which is why they are to be proven prime first.
No! Your bold-faced statement is completely wrong.

To see why, assume that the generator proves its output is prime before it is sent to you. The point of the warning is that, in principle, anyone between the generator and you can read and record the primes which you receive. After that it's game over.


Paul
xilman is online now   Reply With Quote
Old 2010-07-20, 11:58   #143
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

110100100002 Posts
Default

Quote:
Unfortunately (or should that be fortunately?) not everyone is an idiot like you. It only takes one competent person to implement an attack and then idiots can use that implementation to succeed with high probability.
Didn't have to insult me that badly. :|

Quote:
To see why, assume that the generator proves its output is prime before it is sent to you. The point of the warning is that, in principle, anyone between the generator and you can read and record the primes which you receive. After that it's game over.
How about if you generate via PARI? Is it equally weak as the internet generator?

Last fiddled with by 3.14159 on 2010-07-20 at 11:58
3.14159 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wheel Factorization a1call Factoring 11 2017-06-19 14:04
Efficient Test paulunderwood Computer Science & Computational Number Theory 5 2017-06-09 14:02
LL tests more credit-efficient than P-1? ixfd64 Software 3 2011-02-20 16:24
A Wheel storm5510 Puzzles 7 2010-06-25 10:29
Most efficient way to LL hj47 Software 11 2009-01-29 00:45

All times are UTC. The time now is 14:52.


Fri Aug 6 14:52:05 UTC 2021 up 14 days, 9:21, 1 user, load averages: 2.93, 2.91, 2.85

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.