<?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 — how to reduce ECC memory(RAM) requirement]]></title>
		<link>https://www.wolfssl.com/forums/topic408-how-to-reduce-ecc-memoryram-requirement.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic408.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in how to reduce ECC memory(RAM) requirement.]]></description>
		<lastBuildDate>Thu, 18 Jul 2013 21:17:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: how to reduce ECC memory(RAM) requirement]]></title>
			<link>https://www.wolfssl.com/forums/post1320.html#p1320</link>
			<description><![CDATA[<p>Hi,</p><p>Have you tried building with both the regular big integer math library as well as the fastmath library to see if one gave you a smaller memory usage?</p><p>If you are doing a source build (not using the ./configure system), the big integer library is enabled by default.&nbsp; If you are building with the ./configure system, the fastmath library is enabled by default on 64-bit systems.&nbsp; You can use the --enable-fastmath or --disable-fastmath build options to turn on/off fastmath, or define USE_FAST_MATH to turn it on when not using ./configure.</p><p>When building with fastmath, there are a few options you can try which may reduce memory size.&nbsp; You can define <strong>TFM_TIMING_RESISTANT</strong>, which will reduce stack usage and disable timing side channel attacks.&nbsp; And the other define you can try using is <strong>POSITIVE_EXP_ONLY</strong>, which will reduce stack use even more when we assume no negative exponents. RSA, ECC, and DH only use positive exponents..</p><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Thu, 18 Jul 2013 21:17:10 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1320.html#p1320</guid>
		</item>
		<item>
			<title><![CDATA[how to reduce ECC memory(RAM) requirement]]></title>
			<link>https://www.wolfssl.com/forums/post1308.html#p1308</link>
			<description><![CDATA[<p>Hi,</p><p>I ported ECC part of wolfSSL embedded SSL to cortexM0 and got it working.</p><p>But the memory requirement is huge (9k including heap and stack).</p><p>1. Is it expected?</p><p>2. How to reduce RAM requirement?<br />&nbsp; &nbsp; I tried setting SMALL_STACK, but it does not works on my port. And actually as per document it will decrease stack but increase heap, so net gain will not be that much.</p><br /><p>PS.<br />I posted a related question at <br /><a href="http://www.yassl.com/forums/topic407-ecc-timing-performance-is-variable.html">http://www.yassl.com/forums/topic407-ec … iable.html</a></p>]]></description>
			<author><![CDATA[null@example.com (dhruva)]]></author>
			<pubDate>Wed, 17 Jul 2013 16:33:17 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1308.html#p1308</guid>
		</item>
	</channel>
</rss>
