<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Random prime numbers using OpenSSL bignum</title>
	<atom:link href="http://ardoino.com/7-maths-openssl-primes-random/feed/" rel="self" type="application/rss+xml" />
	<link>http://ardoino.com/7-maths-openssl-primes-random/</link>
	<description>Homo quisque faber ipse fortunae suae</description>
	<pubDate>Fri, 21 Nov 2008 05:51:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Paolo Ardoino</title>
		<link>http://ardoino.com/7-maths-openssl-primes-random/#comment-4115</link>
		<dc:creator>Paolo Ardoino</dc:creator>
		<pubDate>Thu, 17 Jul 2008 22:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://ardoino.com/index.php/1970/01/01/generate-random-prime-numbers-using-openssl-bignum/#comment-4115</guid>
		<description>Yes, it think this should be the problem. It works for higher number of bits, isn't it? :)</description>
		<content:encoded><![CDATA[<p>Yes, it think this should be the problem. It works for higher number of bits, isn&#8217;t it? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://ardoino.com/7-maths-openssl-primes-random/#comment-4081</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Thu, 17 Jul 2008 05:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://ardoino.com/index.php/1970/01/01/generate-random-prime-numbers-using-openssl-bignum/#comment-4081</guid>
		<description>Well, I found this:

http://www.openssl.org/docs/apps/genrsa.html

"...BUGS
A quirk of the prime generation algorithm is that it cannot generate small primes. Therefore the number of bits should not be less that 64. For typical private keys this will not matter because for security reasons they will be much larger (typically 1024 bits). ..."

I wonder if this is the issue?</description>
		<content:encoded><![CDATA[<p>Well, I found this:</p>
<p><a href="http://www.openssl.org/docs/apps/genrsa.html" rel="nofollow">http://www.openssl.org/docs/apps/genrsa.html</a></p>
<p>&#8220;&#8230;BUGS<br />
A quirk of the prime generation algorithm is that it cannot generate small primes. Therefore the number of bits should not be less that 64. For typical private keys this will not matter because for security reasons they will be much larger (typically 1024 bits). &#8230;&#8221;</p>
<p>I wonder if this is the issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://ardoino.com/7-maths-openssl-primes-random/#comment-4078</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Thu, 17 Jul 2008 04:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://ardoino.com/index.php/1970/01/01/generate-random-prime-numbers-using-openssl-bignum/#comment-4078</guid>
		<description>Hmm, OK, compiling with OpenSSL ver 0.9.8h on a Sparc 5 running Solaris 2.5.1 yields the following:

# ./genprimes 56
Prime generator by (c) 2004 Paolo Ardoino 
 usage: ./genprimes [num_bits]
Generating 56 bits primes.
Wait...
69834779657420543
61474498444152383
66239213586814127
61351200631567103
71739027417375587
59701796016635783
65300592723857159
59533171614579239
55576223021154503
^C# 

so far looks impressive...

# ./genprimes 8
Prime generator by (c) 2004 Paolo Ardoino 
 usage: ./genprimes [num_bits]
Generating 8 bits primes.
Wait...
35879
35879
35879
35879
35879
^X35879
^C# 
# ./genprimes 4
Prime generator by (c) 2004 Paolo Ardoino 
 usage: ./genprimes [num_bits]
Generating 4 bits primes.
Wait...
35879
35879
^C# ./genprimes 1
Prime generator by (c) 2004 Paolo Ardoino 
 usage: ./genprimes [num_bits]
Generating 1 bits primes.
Wait...
35879
35879
^C# l

Hmmmmm......</description>
		<content:encoded><![CDATA[<p>Hmm, OK, compiling with OpenSSL ver 0.9.8h on a Sparc 5 running Solaris 2.5.1 yields the following:</p>
<p># ./genprimes 56<br />
Prime generator by (c) 2004 Paolo Ardoino<br />
 usage: ./genprimes [num_bits]<br />
Generating 56 bits primes.<br />
Wait&#8230;<br />
69834779657420543<br />
61474498444152383<br />
66239213586814127<br />
61351200631567103<br />
71739027417375587<br />
59701796016635783<br />
65300592723857159<br />
59533171614579239<br />
55576223021154503<br />
^C# </p>
<p>so far looks impressive&#8230;</p>
<p># ./genprimes 8<br />
Prime generator by (c) 2004 Paolo Ardoino<br />
 usage: ./genprimes [num_bits]<br />
Generating 8 bits primes.<br />
Wait&#8230;<br />
35879<br />
35879<br />
35879<br />
35879<br />
35879<br />
^X35879<br />
^C#<br />
# ./genprimes 4<br />
Prime generator by (c) 2004 Paolo Ardoino<br />
 usage: ./genprimes [num_bits]<br />
Generating 4 bits primes.<br />
Wait&#8230;<br />
35879<br />
35879<br />
^C# ./genprimes 1<br />
Prime generator by (c) 2004 Paolo Ardoino<br />
 usage: ./genprimes [num_bits]<br />
Generating 1 bits primes.<br />
Wait&#8230;<br />
35879<br />
35879<br />
^C# l</p>
<p>Hmmmmm&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nobody</title>
		<link>http://ardoino.com/7-maths-openssl-primes-random/#comment-3669</link>
		<dc:creator>Nobody</dc:creator>
		<pubDate>Mon, 07 Jul 2008 09:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://ardoino.com/index.php/1970/01/01/generate-random-prime-numbers-using-openssl-bignum/#comment-3669</guid>
		<description>"Don't ask me no questions and I wont tell you no lies"


#include 
General purpose input/output routines

#include 
Some UNIX standard 

None of the above are required, but use to be a good idea to include them, since these are probably the most common headers.

#include 
Another standard UNIX header, which declares free, malloc etc...
(more info at http://en.wikipedia.org/wiki/Stdlib.h)

#include 
This one is very useful, contains functions, macros and routines to work with (char *) as strings (includes strlen, strtol, memset and much more things)

#include 
Openssl BIGNUM declarations, for arithmetics with huge numbers (such as the primes needed to implement RSA algorithm)</description>
		<content:encoded><![CDATA[<p>&#8220;Don&#8217;t ask me no questions and I wont tell you no lies&#8221;</p>
<p>#include<br />
General purpose input/output routines</p>
<p>#include<br />
Some UNIX standard </p>
<p>None of the above are required, but use to be a good idea to include them, since these are probably the most common headers.</p>
<p>#include<br />
Another standard UNIX header, which declares free, malloc etc&#8230;<br />
(more info at <a href="http://en.wikipedia.org/wiki/Stdlib.h" rel="nofollow">http://en.wikipedia.org/wiki/Stdlib.h</a>)</p>
<p>#include<br />
This one is very useful, contains functions, macros and routines to work with (char *) as strings (includes strlen, strtol, memset and much more things)</p>
<p>#include<br />
Openssl BIGNUM declarations, for arithmetics with huge numbers (such as the primes needed to implement RSA algorithm)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fredi</title>
		<link>http://ardoino.com/7-maths-openssl-primes-random/#comment-3665</link>
		<dc:creator>fredi</dc:creator>
		<pubDate>Mon, 07 Jul 2008 08:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://ardoino.com/index.php/1970/01/01/generate-random-prime-numbers-using-openssl-bignum/#comment-3665</guid>
		<description>Please explain what is the purpose of the "#include "

in your header file?



&lt;a href="http://www.sportsbookteaser.com" rel="nofollow"&gt;fredi&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Please explain what is the purpose of the &#8220;#include &#8221;</p>
<p>in your header file?</p>
<p><a href="http://www.sportsbookteaser.com" rel="nofollow">fredi</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
