<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NIST Random Number Tast failed on imx6ul in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/NIST-Random-Number-Tast-failed-on-imx6ul/m-p/712436#M110766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; the following may be helpful :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/437691"&gt;https://community.nxp.com/thread/437691&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2017 05:30:11 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2017-09-04T05:30:11Z</dc:date>
    <item>
      <title>NIST Random Number Tast failed on imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NIST-Random-Number-Tast-failed-on-imx6ul/m-p/712435#M110765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using the imx6ul processor in an application where NIST certification for random number generation sources is required. For this, we capture ~140MB of random data from&amp;nbsp; /dev/hwrng interface and fead it to the NIST statistical tests. The test parameters used were as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./assess 1000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Block Frequency block length&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20000&lt;/P&gt;&lt;P&gt;Non-Overlapping Templates template length&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;Overlapping Template template length&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;Approximate Entropy block length&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;Serial block length&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&lt;/P&gt;&lt;P&gt;Linear Complexity block length&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Number of bit streams (sample size) (M)&amp;nbsp;&amp;nbsp; 1073&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The minimum size of data&amp;nbsp; tested is 128mb. So two test samples were created by taking the 1st 128mb and last 128mb of the captured 140mb of data from the processor. According to the final analysis reports, in the last data portion a NonOverlappingTemplate test scores below the minimum pass rate. So we captured several data samples and ran the test. The results are not consistent, some tests passed and some failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does this happen in the /dev/hwrng interface?&lt;/P&gt;&lt;P&gt;What are the implications of this result on the certification?&lt;/P&gt;&lt;P&gt;Is there any specific configuration for the CAAM RNG that we should use? We are using yocto linux-3.14.38 without any modifications.&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;imx6ul SRM says the RNG should be instantiated in test mode to obtain data for certification. Even in test mode some tests fail. Below are extracts from the failed test reports for /dev/hwrng:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;C1&amp;nbsp; C2&amp;nbsp; C3&amp;nbsp; C4&amp;nbsp; C5&amp;nbsp; C6&amp;nbsp; C7&amp;nbsp; C8&amp;nbsp; C9 C10&amp;nbsp; P-VALUE&amp;nbsp; PROPORTION&amp;nbsp; STATISTICAL TEST&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;113 111&amp;nbsp; 95 102&amp;nbsp; 91 111&amp;nbsp; 95 109 122 124&amp;nbsp; 0.290066&amp;nbsp;&amp;nbsp; 1051/1073 *&amp;nbsp; NonOverlappingTemplate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;C1&amp;nbsp; C2&amp;nbsp; C3&amp;nbsp; C4&amp;nbsp; C5&amp;nbsp; C6&amp;nbsp; C7&amp;nbsp; C8&amp;nbsp; C9 C10&amp;nbsp; P-VALUE&amp;nbsp; PROPORTION&amp;nbsp; STATISTICAL TEST&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;109 109&amp;nbsp; 91&amp;nbsp; 94 108 123 112&amp;nbsp; 98 108 121&amp;nbsp; 0.411806&amp;nbsp;&amp;nbsp; 1051/1073 *&amp;nbsp; NonOverlappingTemplate##&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 05:47:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NIST-Random-Number-Tast-failed-on-imx6ul/m-p/712435#M110765</guid>
      <dc:creator>prashan</dc:creator>
      <dc:date>2017-09-01T05:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: NIST Random Number Tast failed on imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NIST-Random-Number-Tast-failed-on-imx6ul/m-p/712436#M110766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; the following may be helpful :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/437691"&gt;https://community.nxp.com/thread/437691&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 05:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NIST-Random-Number-Tast-failed-on-imx6ul/m-p/712436#M110766</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2017-09-04T05:30:11Z</dc:date>
    </item>
  </channel>
</rss>

