<?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>MbedTLS RNG fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78801/mbedtls-rng-fail</link><description>I am trying to generate ECC key pairs using MbedTLS on Connect SDK. 
 I found this code block on stackoverflow and validated from mbedtls/programs. 
 
 &amp;quot;mbedtls_ctr_drbg_seed&amp;quot; function returns &amp;quot;-52&amp;quot; because &amp;quot;mbedtls_entropy_func&amp;quot; not working properly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Aug 2021 16:02:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78801/mbedtls-rng-fail" /><item><title>RE: MbedTLS RNG fail</title><link>https://devzone.nordicsemi.com/thread/326017?ContentTypeID=1</link><pubDate>Fri, 20 Aug 2021 16:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba022b73-7afc-4af0-ba7d-1c2f8a0848ae</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please try to &amp;#39;memset&amp;#39; the mbdetls context struct as suggested in this thread here &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58824/cc310-platform-mutex-init-error"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/58824/cc310-platform-mutex-init-error&lt;/a&gt;. Hopefully it&amp;#39;s that simple. Also, in case you haven&amp;#39;t noticed, there are several test cases in &amp;lt;ncs&amp;gt;\nrf\tests\crypto\test_cases\ that might be useful as a reference if you are not familiar with the Mbedtls APIs.&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>