<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — [SOLVED] Making an RSA key using wc_MakeRsaKey never stops]]></title>
		<link>https://www.wolfssl.com/forums/topic1252-solved-making-an-rsa-key-using-wcmakersakey-never-stops.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1252.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] Making an RSA key using wc_MakeRsaKey never stops.]]></description>
		<lastBuildDate>Fri, 26 Oct 2018 20:01:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Making an RSA key using wc_MakeRsaKey never stops]]></title>
			<link>https://www.wolfssl.com/forums/post4261.html#p4261</link>
			<description><![CDATA[<p>Hi David </p><p>Thanks for your reply. <br />In fact it I had defined small heap/stack memory. I increased it, then it resolved.</p>]]></description>
			<author><![CDATA[null@example.com (ehsan.aerabi)]]></author>
			<pubDate>Fri, 26 Oct 2018 20:01:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4261.html#p4261</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Making an RSA key using wc_MakeRsaKey never stops]]></title>
			<link>https://www.wolfssl.com/forums/post4136.html#p4136</link>
			<description><![CDATA[<p>Hi Ehsan,</p><p>The RSA key generation is a very intensive operation. Even on a top end Intel i7 part is takes almost 1 second. Generating an RSA 2048-bit key requires two 256 byte prime numbers. It requires a large amount of RNG data. I suspect it appears to hang, but its still running.</p><p>Example:</p><div class="quotebox"><blockquote><p>./configure --enable-keygen &amp;&amp; make<br />./wolfcrypt/benchmark/benchmark -rsa-kg<br />wolfCrypt Benchmark (block bytes 1048576, min 1.0 sec each)<br />RSA&nbsp; &nbsp; &nbsp;1024 key gen&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;8 ops took 1.058 sec, avg 132.305 ms, 7.558 ops/sec<br />RSA&nbsp; &nbsp; &nbsp;2048 key gen&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3 ops took 2.862 sec, avg 954.070 ms, 1.048 ops/sec</p></blockquote></div><p>Thanks,<br />David Garske, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (dgarske)]]></author>
			<pubDate>Thu, 30 Aug 2018 22:57:31 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4136.html#p4136</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Making an RSA key using wc_MakeRsaKey never stops]]></title>
			<link>https://www.wolfssl.com/forums/post4106.html#p4106</link>
			<description><![CDATA[<p>Hi</p><p>I appreciate your help. I am running a very basic RSA code snippet on STM32F7xx. But it is stuck at wc_MakeRsaKey and never stops. Here is the code: </p><div class="codebox"><pre><code>    int    ret;

    size_t bytes;
    WC_RNG rng;
    RsaKey key;

    /* initialize stack structures */
    XMEMSET(&amp;rng, 0, sizeof(rng));
    XMEMSET(&amp;key, 0, sizeof(key));


    bytes = (size_t)sizeof_client_key_der_2048;

     ret = wc_InitRsaKey(&amp;key, NULL);
    
    ret = wc_InitRng(&amp;rng);

    ret = wc_MakeRsaKey(&amp;key, 1024, 65537, &amp;rng);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ehsan.aerabi)]]></author>
			<pubDate>Wed, 22 Aug 2018 09:58:07 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4106.html#p4106</guid>
		</item>
	</channel>
</rss>
