<?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>Random Number Generator</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53138/random-number-generator</link><description>Hello Nordic. 
 I find two RNG example. 
 Both nrf_crypto_rng_vector_generate and nrf_drv_rng_rand , what is the difference? 
 Which one is better on RNG. 
 How to correspond in the nRF52840_PS_v1.1.pdf! 
 • True random number generator (TRNG) compliant</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Oct 2019 10:03:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53138/random-number-generator" /><item><title>RE: Random Number Generator</title><link>https://devzone.nordicsemi.com/thread/215241?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 10:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fe85161-748e-4161-bfab-2bf4fcf8bb99</guid><dc:creator>HappyANdy</dc:creator><description>&lt;p&gt;&lt;span&gt;Dear Heidi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You express very clarify.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ANDY&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Number Generator</title><link>https://devzone.nordicsemi.com/thread/214819?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 11:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b354eed3-869d-4866-843e-e9e0e24f34a9</guid><dc:creator>Heidi</dc:creator><description>[quote user="HappyANdy"]So,&amp;nbsp;can I think so there are three ways to generate the random number?[/quote]
&lt;p&gt;Yes, two ways using CryptoCell and one using the hardware peripheral.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="HappyANdy"]The other is&amp;nbsp;using the RNG driver, which accesses the RNG peripheral of the chip. Is it&amp;nbsp;compliant with any certificate?[/quote]
&lt;p&gt;No, the RNG peripheral is not compliant with any certificate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You should note that although the CryptoCell RNG is designed to be&amp;nbsp;&lt;em&gt;compliant&lt;/em&gt; with these specifications, it is not&amp;nbsp;&lt;em&gt;certified.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Number Generator</title><link>https://devzone.nordicsemi.com/thread/214642?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 16:14:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063e1a82-8a18-4b94-84a3-0e60d48c4587</guid><dc:creator>HappyANdy</dc:creator><description>&lt;p&gt;&lt;span&gt;Dear Heidi,&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get it.&lt;br /&gt;So,&amp;nbsp;can I think so there are three ways to generate the random number?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One is using ARM-CC310 a TRNG that is compliant with NIST 800-90B15, AIS-31, and FIPS 140-2/315.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another is using the&amp;nbsp;mbed TLS CTR-DRBG standardized by NIST SP 800-90A Rev. 1.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The other is&amp;nbsp;using the RNG driver, which accesses the RNG peripheral of the chip. Is it&amp;nbsp;compliant with any certificate?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Because I need very pay attention to the quality of the random number generator, I must know more detail.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Thank You!&lt;br /&gt;Andy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Number Generator</title><link>https://devzone.nordicsemi.com/thread/214637?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 15:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda8fc1b-41b3-4f9f-9fca-52ce77575ede</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi Andy!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The first example you mentioned utilizes&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fcryptocell.html"&gt;ARM&amp;#39;s CryptoCell cryptography service&lt;/a&gt;. CryptoCell has two random number generator methods, both&amp;nbsp;&lt;em&gt;true&lt;/em&gt; &lt;em&gt;random number generator&lt;/em&gt; and&amp;nbsp;&lt;em&gt;pseudo random number generator.&amp;nbsp;&lt;/em&gt;True random number generator, also knowns as hardware random number generator uses a physical process to generate the numbers.&amp;nbsp;&lt;a href="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90B.pdf"&gt;Here&lt;/a&gt;&amp;nbsp;you can read more about the entropy sources for this process. On the other hand, the pseudo-random number generator uses an algorithm to&amp;nbsp;produce random numbers, by attempting to emulate randomness. This method is much fast than TRNG, but it is also &amp;quot;less&amp;nbsp;random&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The second example you mention is an example that demonstrates the use of the RNG driver, which accesses the RNG peripheral of&amp;nbsp;the chip.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>