<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How can I generate RSA key pairs in nrf52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116798/how-can-i-generate-rsa-key-pairs-in-nrf52840</link><description>Hello~ 
 I am developing nrf52840 with zephyr ncs tool chain v2.7.0 and SDK v2.6.1. 
 What we need is to generate RSA key pairs and send public key to App to encrypt data and send back. 
 The first step, we need to generate RSA key pairs. 
 I found and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Nov 2024 14:40:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116798/how-can-i-generate-rsa-key-pairs-in-nrf52840" /><item><title>RE: How can I generate RSA key pairs in nrf52840?</title><link>https://devzone.nordicsemi.com/thread/512612?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2024 14:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94eba8e6-b571-43f2-9d6f-2f91a4795c4e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;RSA key generation is demonstrated in the RSA sample in SDK 2.5.x. However, from SDK 2.6 the sample uses 4k RSA keys, but does not support key generation (see &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/14043/commits/7258d86fd80b5716a20cd8965cf259b2b81328ce"&gt;this commit&lt;/a&gt; for details). So you either need to do as in the old sample and and swith to CryptoCell, or generate the keys outside of the nRF.&lt;/p&gt;
&lt;p&gt;PS: The description for the use case here is a bit vague, and if the goal is just to secure a Bluetooth link, note that BLE supports encryption out of the box.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>