<?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 — Issues with ChaCha20_Poly1305 Header Inclusion]]></title>
		<link>https://www.wolfssl.com/forums/topic2299-issues-with-chacha20poly1305-header-inclusion.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2299.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Issues with ChaCha20_Poly1305 Header Inclusion.]]></description>
		<lastBuildDate>Mon, 31 Mar 2025 20:02:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Issues with ChaCha20_Poly1305 Header Inclusion]]></title>
			<link>https://www.wolfssl.com/forums/post8287.html#p8287</link>
			<description><![CDATA[<p>Hi bkeller02,</p><p>Thanks for the followup.&nbsp; Please try running nm on the output library, for example /usr/local/lib/libwolfssl.a.</p><p>If you still see wc_ChaCha20Poly1305_Decrypt in the output, try running &quot;ldd&quot; on your application and confirm that it is pointing to the correct wolfSSL library.&nbsp; If you have a system wolfSSL package installed, try uninstalling it.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Mon, 31 Mar 2025 20:02:05 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8287.html#p8287</guid>
		</item>
		<item>
			<title><![CDATA[Re: Issues with ChaCha20_Poly1305 Header Inclusion]]></title>
			<link>https://www.wolfssl.com/forums/post8286.html#p8286</link>
			<description><![CDATA[<p>Hi Kareem,</p><p>Running nm gave this output for the relevant file:</p><p>src_libwolfssl_la-chacha20_poly1305.o:<br />00000001 T wc_ChaCha20Poly1305_CheckTag<br />00000293 T wc_ChaCha20Poly1305_Decrypt<br />0000022f T wc_ChaCha20Poly1305_Encrypt<br />000001c5 T wc_ChaCha20Poly1305_Final<br />00000035 T wc_ChaCha20Poly1305_Init<br />000000bb T wc_ChaCha20Poly1305_UpdateAad<br />00000119 T wc_ChaCha20Poly1305_UpdateData</p><p>With both the HAVE_CHACHA and HAVE_POLY1305 flags defined or when replacing them with --enable-chacha and --enable-poly1305.</p><p>I think I&#039;m using 5.7.6, but I&#039;m building the library within a docker container like this:</p><p>RUN git clone --depth=1 <a href="https://github.com/wolfSSL/wolfssl.git">https://github.com/wolfSSL/wolfssl.git</a> /root/wolfssl &amp;&amp; \<br />&nbsp; &nbsp; cd /root/wolfssl &amp;&amp; \<br />&nbsp; &nbsp; ./autogen.sh &amp;&amp; \<br />&nbsp; &nbsp; ./configure --enable-static --disable-shared --enable-psk --disable-crypttests --disable-examples \<br />&nbsp; &nbsp; --host=arm-none-eabi \<br />&nbsp; &nbsp; CC=arm-none-eabi-gcc LD=arm-none-eabi-ld \<br />&nbsp; &nbsp; AR=arm-none-eabi-ar RANLIB=arm-none-eabi-ranlib \<br />&nbsp; &nbsp; CFLAGS=&quot;-DNO_WOLFSSL_DIR -DWOLFSSL_USER_IO -DNO_WRITEV -mcpu=cortex-m4 -mthumb -Os -specs=rdimon.specs&quot; \<br />&nbsp; &nbsp; CPPFLAGS=&quot;-I./&quot; \<br />&nbsp; &nbsp; C_EXTRA_FLAGS=&quot;-DHAVE_CHACHA -DHAVE_POLY1305 -DTIME_T_NOT_64BIT&quot; &amp;&amp; \<br />&nbsp; &nbsp; make -j$(nproc) &amp;&amp; \<br />&nbsp; &nbsp; make install</p><p>Is there any issue with this method?</p>]]></description>
			<author><![CDATA[null@example.com (bkeller02)]]></author>
			<pubDate>Mon, 31 Mar 2025 18:09:39 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8286.html#p8286</guid>
		</item>
		<item>
			<title><![CDATA[Re: Issues with ChaCha20_Poly1305 Header Inclusion]]></title>
			<link>https://www.wolfssl.com/forums/post8285.html#p8285</link>
			<description><![CDATA[<p>Hi bkeller02,</p><p>I expect the function wc_ChaCha20Poly1305_Decrypt to be available with the defines HAVE_CHACHA and HAVE_POLY1305, there are no additional requirements for this function as of 5.7.6.&nbsp; Just to be sure, can you try replacing these flags with --enable-chacha --enable-poly1305 and let me know if it helps?</p><p>If not, please confirm what version of wolfSSL you&#039;re using.&nbsp; Please also try running </p><div class="codebox"><pre><code>nm -g --defined-only</code></pre></div><p> on your wolfSSL library and confirm whether you see wc_ChaCha20Poly1305_Decrypt in the output.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Mon, 31 Mar 2025 17:42:28 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8285.html#p8285</guid>
		</item>
		<item>
			<title><![CDATA[Issues with ChaCha20_Poly1305 Header Inclusion]]></title>
			<link>https://www.wolfssl.com/forums/post8284.html#p8284</link>
			<description><![CDATA[<p>I&#039;m cross-compiling for an arm-none-eabi-gcc environment and keep getting the error &quot;undefined reference to wc_ChaCha20Poly1305_Decrypt&quot;. My c file for my project code includes the headers in this order:</p><p>#include &lt;wolfssl/options.h&gt;<br />#include &lt;wolfssl/wolfcrypt/settings.h&gt;<br />#include &lt;wolfssl/wolfcrypt/chacha20_poly1305.h&gt;</p><p>This is what I&#039;m passing to ./configure:</p><p>&nbsp; &nbsp; ./configure --enable-static --disable-shared --enable-psk --disable-crypttests --disable-examples \<br />&nbsp; &nbsp; --host=arm-none-eabi \<br />&nbsp; &nbsp; CC=arm-none-eabi-gcc LD=arm-none-eabi-ld \<br />&nbsp; &nbsp; AR=arm-none-eabi-ar RANLIB=arm-none-eabi-ranlib \<br />&nbsp; &nbsp; CFLAGS=&quot;-DNO_WOLFSSL_DIR -DWOLFSSL_USER_IO -DNO_WRITEV -mcpu=cortex-m4 -mthumb -Os -specs=rdimon.specs&quot; \<br />&nbsp; &nbsp; CPPFLAGS=&quot;-I./&quot; \<br />&nbsp; &nbsp; C_EXTRA_FLAGS=&quot;-DHAVE_CHACHA -DHAVE_POLY1305 -DTIME_T_NOT_64BIT&quot;</p><p>In my project&#039;s makefile, I&#039;m linking like this:</p><p>PROJ_LDFLAGS += -L/usr/local/lib -lwolfssl</p><p>Any ideas as to what I&#039;m doing wrong?</p>]]></description>
			<author><![CDATA[null@example.com (bkeller02)]]></author>
			<pubDate>Mon, 31 Mar 2025 17:30:14 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8284.html#p8284</guid>
		</item>
	</channel>
</rss>
