<?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 — Raspberry Pi Pico-2W RSA not working]]></title>
		<link>https://www.wolfssl.com/forums/topic2375-raspberry-pi-pico2w-rsa-not-working.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2375.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Raspberry Pi Pico-2W RSA not working.]]></description>
		<lastBuildDate>Tue, 09 Sep 2025 12:39:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8523.html#p8523</link>
			<description><![CDATA[<p>Further to my previous message, this PR fixes the problem.</p><p><a href="https://github.com/wolfSSL/wolfssl-examples/pull/524">https://github.com/wolfSSL/wolfssl-examples/pull/524</a></p>]]></description>
			<author><![CDATA[null@example.com (LinuxJedi)]]></author>
			<pubDate>Tue, 09 Sep 2025 12:39:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8523.html#p8523</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8522.html#p8522</link>
			<description><![CDATA[<p>Right... There appears to be a bug in the CMakeLists.txt here which should have been fixed a few months ago, but I see it hasn&#039;t.</p><p>Long story short:</p><p>1. You should never try to override PICO_PLATFORM in your cmake command line<br />2. That line in the CMakeLists.txt should say rp2350-arm-s, there was a behaviour change in the ARM SDK 2.x which broke it</p><p>I think that is the key to your problem. I&#039;ll run some tests and open a PR to fix it.</p>]]></description>
			<author><![CDATA[null@example.com (LinuxJedi)]]></author>
			<pubDate>Tue, 09 Sep 2025 12:11:00 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8522.html#p8522</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8517.html#p8517</link>
			<description><![CDATA[<p>Hi,</p><p>I was able to get RSA working by 1. increasing the stack/heap by customizing the memmap_custom.ld and linking it and 2. removing the following code from my CMakeList (this is from the RPI-Pico example repository):<br /></p><div class="codebox"><pre><code>if (${PICO_PLATFORM} STREQUAL &quot;rp2350&quot;)
    add_compile_definitions(wolfssl WOLFSSL_SP_ARM_CORTEX_M_ASM)
elseif (${PICO_PLATFORM} STREQUAL &quot;rp2350-riscv&quot;)
    add_compile_definitions(wolfSSL WOLFSSL_SP_RISCV32)
else()
    add_compile_definitions(wolfssl WOLFSSL_SP_ARM_THUMB_ASM)
endif()</code></pre></div><p>The above code is right before:<br /></p><div class="codebox"><pre><code>pico_add_extra_outputs(benchmark)</code></pre></div><p>in the Benchmark wolfCrypt algorithms section.</p><p>Thank you all for your help.</p>]]></description>
			<author><![CDATA[null@example.com (yinzixuansz)]]></author>
			<pubDate>Mon, 08 Sep 2025 10:22:56 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8517.html#p8517</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8513.html#p8513</link>
			<description><![CDATA[<p>Hi Andrew,</p><p>I am using Pico SDK 2.2.0<br />For cmake, I am using &quot;cmake -DPICO_BOARD=pico2_w -DPICO_PLATFORM=rp2350 ..&quot;</p>]]></description>
			<author><![CDATA[null@example.com (yinzixuansz)]]></author>
			<pubDate>Sat, 06 Sep 2025 19:47:47 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8513.html#p8513</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8509.html#p8509</link>
			<description><![CDATA[<p>Hi Yin,</p><p>Can you please let us know what version of the Pico SDK you are using? Also, can you please confirm you are using `cmake -DPICO_BOARD=pico2`?</p><p>Kind Regards<br />Andrew Hutchings, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (LinuxJedi)]]></author>
			<pubDate>Fri, 05 Sep 2025 14:15:57 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8509.html#p8509</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8508.html#p8508</link>
			<description><![CDATA[<p>Hello Andrew,</p><p>Thanks for the reply; I&#039;ve cloned the wolfssl-examples repository and ran the benchmark tests with the config settings that you suggested, but it seems to still stop at RSA. Please let me know what I can do to fix this issue. I&#039;m currently looking into ways to redefine heap/stack memory for the Pico 2W, but it seems like there&#039;s very little documentation on that.</p>]]></description>
			<author><![CDATA[null@example.com (yinzixuansz)]]></author>
			<pubDate>Fri, 05 Sep 2025 12:15:24 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8508.html#p8508</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8507.html#p8507</link>
			<description><![CDATA[<p>Hi Yin,</p><p>It is possible you are hitting a heap / stack limit or there is some other configuration issue. I highly recommend looking at the user_settings.h file in our examples repository here: <a href="https://github.com/wolfSSL/wolfssl-examples/tree/master/RPi-Pico">https://github.com/wolfSSL/wolfssl-exam … r/RPi-Pico</a></p><p>Options such as WOLFSSL_SMALL_STACK is highly recommended. WOLFSSL_SP_SMALL and RSA_LOW_MEM can help, even though they are not used in the examples.</p><p>Also, if you are using ARM assembly options, make sure you compile with `WOLFSSL_SP_ARM_CORTEX_M_ASM` defined, you can see this in the CMakeList.txt for the examples. </p><p>If you don&#039;t have one already, I highly recommend obtaining an SWD debug probe for the Pico, or using Raspberry Pi&#039;s examples on converting a second Pico into an SWD debug probe. This way you will be able to observe what the problem might be.</p><p>Whilst we haven&#039;t tested ML_DSA with the RP2040 or RP2350, it works on similar ARM platforms, so should work without issue.</p><p>Kind Regards<br />Andrew Hutchings, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (LinuxJedi)]]></author>
			<pubDate>Thu, 04 Sep 2025 14:00:09 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8507.html#p8507</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8506.html#p8506</link>
			<description><![CDATA[<p>Hi David,</p><p>Thanks for the reply. For now, I&#039;m trying to replicate the benchmark results at the link below, but it seems that I get stuck at RSA, I&#039;m not sure why.<br />Additionally, are you aware whether it&#039;s possible to use ML_DSA on the Pico? Thanks.</p><p><a href="https://www.wolfssl.com/a-slice-of-security-for-the-raspberry-pi-pico/">https://www.wolfssl.com/a-slice-of-secu … y-pi-pico/</a></p>]]></description>
			<author><![CDATA[null@example.com (yinzixuansz)]]></author>
			<pubDate>Thu, 04 Sep 2025 13:23:00 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8506.html#p8506</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8501.html#p8501</link>
			<description><![CDATA[<p>Hi Yin,</p><p>The RSA Key Generation is extremely computational and I would expect it to take several minutes on an M0+ at 125MHz. It must find two large primes. The RSA key generation on a device like this is fairly impractical and many companies will load a pre-provisioned RSA key. What is your use-case? Can you tell us more about your project?</p><p>Thanks,<br />David Garske, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (dgarske)]]></author>
			<pubDate>Tue, 02 Sep 2025 16:28:29 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8501.html#p8501</guid>
		</item>
		<item>
			<title><![CDATA[Raspberry Pi Pico-2W RSA not working]]></title>
			<link>https://www.wolfssl.com/forums/post8497.html#p8497</link>
			<description><![CDATA[<p>Hi all,</p><p>I have been trying to implement RSA on the Raspberry Pi Pico 2W RP2350 microcontroller with the Dual Cortex-M33 processor. However, I am getting stuck at wc_MakeRsaKey</p><div class="codebox"><pre><code>RsaKey priv;
WC_RNG rng;
int ret = 0;
long e = 65537; // standard value to use for exponent

ret = wc_InitRsaKey(&amp;priv, NULL);
printf(&quot;wc_InitRsaKey ret: %d\n&quot;, ret);
ret = wc_InitRng(&amp;rng);
printf(&quot;wc_InitRng ret: %d\n&quot;, ret);
ret = wc_RsaSetRNG(&amp;priv, &amp;rng);
printf(&quot;wc_RsaSetRNG ret: %d\n&quot;, ret);
// generate 2048 bit long private key
ret = wc_MakeRsaKey(&amp;priv, 2048, e, &amp;rng);
printf(&quot;wc_MakeRsaKey ret: %d\n&quot;, ret);</code></pre></div><p>I have tried the benchmark tests and have been unable to replicate the results at <a href="https://www.wolfssl.com/docs/benchmarks/">https://www.wolfssl.com/docs/benchmarks/</a> <br />The platform that WolfSSL tested with is slightly different:<br />Raspberry Pi Pico-W<br />ARM Cortext M0+, 125MHz<br />When trying to run to run bench_main from the example repository in WolfSSL:<br /><a href="https://github.com/wolfSSL/wolfssl-examples/blob/master/RPi-Pico/src/bench_main.c">https://github.com/wolfSSL/wolfssl-exam … nch_main.c</a><br />The code gets stuck at RSA.</p><br /><p>I saw a blog post here related to this issue:<br /><a href="https://www.wolfssl.com/forums/topic1252-solved-making-an-rsa-key-using-wcmakersakey-never-stops.html">https://www.wolfssl.com/forums/topic125 … stops.html</a></p><p>However, I am unsure if this is the issue and, if so, how to resolve it for my Pico 2W. Any help is appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (yinzixuansz)]]></author>
			<pubDate>Mon, 01 Sep 2025 02:59:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8497.html#p8497</guid>
		</item>
	</channel>
</rss>
