<?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] Getting Started WolfCrypt on Arduino]]></title>
		<link>https://www.wolfssl.com/forums/topic861-solved-getting-started-wolfcrypt-on-arduino.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic861.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] Getting Started WolfCrypt on Arduino.]]></description>
		<lastBuildDate>Fri, 29 Sep 2017 17:55:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post3575.html#p3575</link>
			<description><![CDATA[<p>Hi Ornelas,</p><p>wolfSSL falls back to including &lt;sys/socket.h&gt; when no other port layers have been enabled.&nbsp; Last time we worked with wolfSSL on an Arduino, we created a define called WOLFSSL_ARDUINO.&nbsp; Are you defining this when compiling wolfSSL?</p><p>Further instructions can be found in the following README:<br /><a href="https://github.com/wolfSSL/wolfssl/blob/master/IDE/ARDUINO/README.md">https://github.com/wolfSSL/wolfssl/blob … /README.md</a></p><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Fri, 29 Sep 2017 17:55:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3575.html#p3575</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post3521.html#p3521</link>
			<description><![CDATA[<p>I have installed the wolfssl library in Arduino and it appears me in the examples. Until here everything is ok but when I want to compile it, it says me the following errors.</p><br /><br /><br /><br /><br /><br /><br /><br /><p>In file included from C:\Program Files (x86)\Arduino\libraries\wolfssl/wolfssl/ssl.h:95:0,</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from C:\Users\LabSE\AppData\Local\Temp\arduino_modified_sketch_350713\wolfssl_client.ino:24:</p><p>C:\Program Files (x86)\Arduino\libraries\wolfssl/wolfssl/io.h:120:36: fatal error: sys/socket.h: No such file or directory</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#include &lt;sys/socket.h&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</p><p>compilation terminated.</p><p>exit status 1<br />Error compilando para la tarjeta Arduino/Genuino Uno.</p><p>Anyone knows why?<br />Can this library help me to enable ssl to communicate with an smtp server using the wifly shield?</p>]]></description>
			<author><![CDATA[null@example.com (Ornelas)]]></author>
			<pubDate>Tue, 05 Sep 2017 16:43:13 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3521.html#p3521</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post2815.html#p2815</link>
			<description><![CDATA[<p>Hi jellefresen,</p><p>pthreads is not something provided by wolfSSL. Pthreads stands for POSIX threads and is typically only supported in a POSIX environment.</p><p>Please see instructions on building for ARDUINO here: <a href="https://github.com/wolfSSL/wolfssl/blob/master/IDE/ARDUINO/README.md">https://github.com/wolfSSL/wolfssl/blob … /README.md</a></p><p>One crucial step is to uncomment the define for WOLFSSL_ARDUINO in &lt;wolfssl-root&gt;/wolfssl/wolfcrypt/settings.h. This will in turn define SINGLE_THREADED which prevents our libraries from including the pthreads header file.</p><br /><p>Regards,</p><p>Kaleb</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Thu, 03 Nov 2016 20:33:42 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2815.html#p2815</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post2803.html#p2803</link>
			<description><![CDATA[<p>Hi, I want to use wolfCrypt in a project on an ESP8266 module, but I can&#039;t get it to work after following these instructions. I have copied the four mentioned c files into the root directory of wolfssl and put the wolfssl directory into the libraries folder. I included &lt;wolfssl.h&gt; into the sketch file, but I get the following compile error:</p><div class="codebox"><pre><code>Arduino: 1.6.8 (Windows 10), Board: &quot;Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 921600, 512K (64K SPIFFS), ck, Disabled, None&quot;

In file included from C:\Program Files (x86)\Arduino\libraries\wolfssl/wolfssl/wolfcrypt/types.h:28:0,

                 from C:\Program Files (x86)\Arduino\libraries\wolfssl/wolfssl/wolfcrypt/aes.h:26,

                 from C:\Program Files (x86)\Arduino\libraries\wolfssl\aes.c:31:

C:\Program Files (x86)\Arduino\libraries\wolfssl/wolfssl/wolfcrypt/wc_port.h:107:9: error: unknown type name &#039;pthread_mutex_t&#039;

         typedef pthread_mutex_t wolfSSL_Mutex;

         ^

exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
&quot;Show verbose output during compilation&quot;
option enabled in File -&gt; Preferences.</code></pre></div><p>Do I have to copy other c files as well? Or is it not compatible with the ESP8266 board?</p>]]></description>
			<author><![CDATA[null@example.com (jellefresen)]]></author>
			<pubDate>Tue, 01 Nov 2016 19:41:39 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2803.html#p2803</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post2749.html#p2749</link>
			<description><![CDATA[<p>Thanks very much for take your time and for your reply, Kaleb.</p><p>It works!</p>]]></description>
			<author><![CDATA[null@example.com (jesussotofan)]]></author>
			<pubDate>Fri, 14 Oct 2016 11:47:20 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2749.html#p2749</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post2746.html#p2746</link>
			<description><![CDATA[<p>Hi jesussotofan,</p><p>You&#039;re correct, wc_aes.c was a typo, should have been just aes.c.</p><p>Now that you have &lt;path-to-arduino&gt;/libraries/wolfssl/(bunch of stuff + aes.c, wc_port.c, coding.c, and error.c) you need to take the last step performed by the script which is to simply create a new file and call it &quot;wolfssl.h&quot; and put this line in it:</p><div class="codebox"><pre><code>/* stub header file for Arduino compatibility */</code></pre></div><p>arduino won&#039;t recognize it as a library without a header file with the same name as the directory (that&#039;s why I noted to rename wolfssl-x.x.x to simply wolfssl).</p><br /><p>Regards,</p><p>Kaleb</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Thu, 13 Oct 2016 17:08:48 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2746.html#p2746</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post2743.html#p2743</link>
			<description><![CDATA[<p>Hi, thanks for your reply Kaleb.<br />I just need to use AES algorithm, forgetting the use of TLS / SSL. I copied the four files that told me except &quot;wc_aes.c&quot; because there was not, instead I copied &quot;aes.c&quot;.</p><p>All these files were in &lt;wolfssl-root&gt; / wolfcrypt / src.<br />Now that they have been copied to &lt;wolfssl-root&gt;, I copied this folder in &lt;path-to-arduino&gt; / libraries.</p><p>I open a new Arduino project and go to &quot;Sketch&gt; Include Library&gt; Contributed libraries&quot; but I can not choose wolfssl libraries because they do not appear.</p><p>I do not know what I did wrong this time, but I can not get this to work.<br />I was wrong about something?</p><p>Thank you very much for any help or advice you can give me!</p>]]></description>
			<author><![CDATA[null@example.com (jesussotofan)]]></author>
			<pubDate>Thu, 13 Oct 2016 12:17:24 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2743.html#p2743</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post2741.html#p2741</link>
			<description><![CDATA[<p>Hi jesussotofan,</p><p>There are a couple of steps needed when building for Arduino. Most notably I will point out we have only ever tested the following on Intel Galileo board. We have not ported to any other platforms using Arduino. </p><p>You stated you only desire to use AES encrypt and decrypt, is this the only functionality you need? Are you not doing any TLS?<br />If this is the case you should be able to compile a select subset of our libraries which means you would only place the following four files in the &lt;wolfssl-root&gt; directory and then copy the root directory into the search path for Arduino.</p><div class="codebox"><pre><code>wc_port.c                                                                
coding.c                                                                                                                                
aes.c                                                                 
error.c</code></pre></div><p>If that is not the case and you intend to do a full build then the steps are just about as simple as the README implies. I will try to simplify more:</p><p>In arduino IDE hit File-&gt;open<br />By default you should be looking at a directory containing a folder named &quot;libraries&quot;<br />Note where that folder is located.<br />Now take wolfssl download.<br />If your download has &quot;wolfssl-x.x.x&quot; as the name, rename it to simply &quot;wolfssl&quot;. I will refer to this directory as &lt;wolfssl-root&gt;, it just means the top-level wolfssl directory as we also have a directory inside the root directory named &quot;wolfssl&quot;.<br />copy/paste the entire &lt;wolfssl-root&gt; directory into the &quot;libraries&quot; directory, not at the same level.<br />You should now have:</p><p>&lt;path-to-arduino&gt;/libraries/wolfssl<br />now follow the steps in the README for moving all the .c source files to the root directory of wolfssl and building the libraries.</p><br /><p>Make sure you have the correct settings<br />In the Arduino IDE check Tools -&gt; Board<br />by default this is set to something like &quot;Arduino/Genuino Uno&quot; if that is not the board you&#039;re building for then select the correct board. If you do not see the board you are looking for then select the &quot;Board Manager&quot; option and find the correct board support and install it. Then restart the IDE and again go Tools -&gt; Board and find your board.</p><p>If you have any further trouble let us know.</p><br /><p>Kind Regards,</p><p>Kaleb</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Wed, 12 Oct 2016 21:38:50 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2741.html#p2741</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Getting Started WolfCrypt on Arduino]]></title>
			<link>https://www.wolfssl.com/forums/post2739.html#p2739</link>
			<description><![CDATA[<p>Hi, maybe this query sounds rather silly, but I&#039;m desperate.<br />I&#039;m trying to deploy an Arduino project to encrypt and decrypt using AES, but I get nothing since only get many import errors from libraries.</p><p>I followed the instructions to build the library &quot;/IDE/ARDUINO/README.md&quot; and then I copied in the libraries directory at Arduino.</p><p>As I get some fault, I modified some &quot;.h&quot; files to convert relative paths, but I keep getting errors.</p><p>Is there any tutorial for getting started showing how to use wolfcrypt library from scratch in an Arduino project?<br />Thank you very much for taking time and giving me tips!</p>]]></description>
			<author><![CDATA[null@example.com (jesussotofan)]]></author>
			<pubDate>Tue, 11 Oct 2016 12:00:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2739.html#p2739</guid>
		</item>
	</channel>
</rss>
