<?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 — Running AES-CTR on Riot OS]]></title>
		<link>https://www.wolfssl.com/forums/topic1704-running-aesctr-on-riot-os.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1704.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Running AES-CTR on Riot OS.]]></description>
		<lastBuildDate>Mon, 08 Mar 2021 23:10:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Running AES-CTR on Riot OS]]></title>
			<link>https://www.wolfssl.com/forums/post5851.html#p5851</link>
			<description><![CDATA[<p>Great, it works now. Thank you for your help, saved my life!</p>]]></description>
			<author><![CDATA[null@example.com (Hu)]]></author>
			<pubDate>Mon, 08 Mar 2021 23:10:39 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5851.html#p5851</guid>
		</item>
		<item>
			<title><![CDATA[Re: Running AES-CTR on Riot OS]]></title>
			<link>https://www.wolfssl.com/forums/post5850.html#p5850</link>
			<description><![CDATA[<p>Hi Hu,</p><p>Welcome to the wolfSSL Support Forums! </p><p>The RIOT-OS build does not use the same instructions as the linux build for wolfSSL. Configuration changes should be made in the user_settings.h header. You should add a define for `WOLFSSL_AES_COUNTER`.</p><p><a href="https://github.com/RIOT-OS/RIOT/blob/master/pkg/wolfssl/include/user_settings.h">https://github.com/RIOT-OS/RIOT/blob/ma … settings.h</a></p><p>Thanks,<br />Eric @ wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Mon, 08 Mar 2021 18:13:57 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5850.html#p5850</guid>
		</item>
		<item>
			<title><![CDATA[Running AES-CTR on Riot OS]]></title>
			<link>https://www.wolfssl.com/forums/post5848.html#p5848</link>
			<description><![CDATA[<p>Hi everyone:</p><p>I am trying to use wolfCrypt on RIOT OS for my IoT project. The current version of wolfCrypt on RIOT is 4.5.0. I followed the instructions: <br />&nbsp; &nbsp; $ ./autogen.sh<br />&nbsp; &nbsp; $ ./configure --enable-aesctr<br />&nbsp; &nbsp; $ make<br />&nbsp; &nbsp; $ make check&nbsp; &nbsp;# (optional, but highly recommended)<br />&nbsp; &nbsp; $ sudo make install<br />to enable AES-CTR. In the options.h, it shows that AES-CTR is enabled. <br />&nbsp; &nbsp;#undef&nbsp; WOLFSSL_AES_COUNTER<br />&nbsp; &nbsp;#define WOLFSSL_AES_COUNTER</p><br /><p>However, when I tried to compile my code on native board, it says:<br />&nbsp; &nbsp;undefined reference to `wc_AesCtrEncrypt&#039;<br />&nbsp; &nbsp;collect2: error: ld returned 1 exit status</p><p>whereas I did include the &quot;aes.h&quot; in my main.c file:<br />&nbsp; #include &lt;stdio.h&gt;<br />&nbsp; #include &lt;unistd.h&gt; <br />&nbsp; #include &lt;wolfssl/options.h&gt;<br />&nbsp; #include &lt;wolfssl/wolfcrypt/sha256.h&gt;<br />&nbsp; #include &lt;wolfssl/wolfcrypt/random.h&gt;<br />&nbsp; #include &lt;wolfssl/wolfcrypt/pwdbased.h&gt; <br />&nbsp; #include &lt;wolfssl/wolfcrypt/aes.h&gt;<br />&nbsp; #include &quot;xtimer.h&quot;<br />&nbsp; #include &quot;log.h&quot;</p><br /><p>Also, Here is my Makefile: </p><p>APPLICATION = test_aes<br />BOARD ?= native<br />RIOTBASE ?= $(CURDIR)/../..<br />DEVELHELP ?= 1<br />QUIET ?= 1<br />CFLAGS += -DTHREAD_STACKSIZE_MAIN=2*THREAD_STACKSIZE_LARGE<br />USEPKG += wolfssl<br />USEMODULE += wolfcrypt_ecc<br />USEMODULE += wolfcrypt-test<br />USEMODULE += wolfcrypt_asn<br />USEMODULE += wolfcrypt_aes<br />USEMODULE += wolfcrypt<br />USEMODULE += wolfcrypt_random<br />USEMODULE += wolfcrypt_sha256<br />USEMODULE += wolfssl_dtls<br />USEMODULE += wolfcrypt_pwdbased<br />USEMODULE += gnrc_sock_check_reuse<br />USEMODULE += gnrc_sock_udp<br />USEMODULE += gnrc_ipv6<br />USEMODULE += xtimer</p><p>ifneq ($(BOARD),native)<br />&nbsp; CFLAGS += -DBENCH_EMBEDDED<br />endif<br />TEST_ON_CI_WHITELIST += native<br />include $(RIOTBASE)/Makefile.include<br />---------------------------------------</p><p>My code works well for AES-CBC mode (wc_AesCbcEncrypt), but keeps saying: undefined reference to `wc_AesCtrEncrypt&#039;. I got stucked here for several days and tried everything I could. Any advice would be helpful. Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (Hu)]]></author>
			<pubDate>Sun, 07 Mar 2021 02:28:23 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5848.html#p5848</guid>
		</item>
	</channel>
</rss>
