<?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>Issue in Compatibilty with uECC and openssl</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79855/issue-in-compatibilty-with-uecc-and-openssl</link><description>Hi. I am trying to generate a shared key via ECDH to encrypt message through UART between nrf52832 and Qualcomm chip. nRF52832 is using uECC and Qualcomm is using openssl. However, the generated shared key on nrf side and Qualcomm chip side is different</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Sep 2021 03:15:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79855/issue-in-compatibilty-with-uecc-and-openssl" /><item><title>RE: Issue in Compatibilty with uECC and openssl</title><link>https://devzone.nordicsemi.com/thread/330559?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 03:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35d738e4-b122-46a2-85f5-642a7db021e9</guid><dc:creator>Mathangopal</dc:creator><description>&lt;p&gt;Hi. Do you have any other library that works with openssl? Seems like there is a lot of issues with uECC. I can also use uECC library on the Qualcomm chip. I am using uECC_set_rng(&amp;amp;RAND_bytes) with the same private and public key however, the shared key is still different. RAND_bytes is a openssl random bytes generator is this compatible with the nrf random number generator? if no, can you share a random number generator function that I can use which is compatible with nrf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in Compatibilty with uECC and openssl</title><link>https://devzone.nordicsemi.com/thread/330472?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 11:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0c06e0f-0e6c-47d1-9855-9af676866d40</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;uECC is built to work with little-endian keys while openssl is big endian so that&amp;#39;s probably the biggest difference. I have not tried to work with openssl myself but looks like it should be possible to make the keys compatible according to the discussion here: &lt;a href="https://githubmemory.com/repo/kmackay/micro-ecc/issues/173"&gt;https://githubmemory.com/repo/kmackay/micro-ecc/issues/173&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>