<?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: SHA-256 calculation problem on large buffer in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SHA-256-calculation-problem-on-large-buffer/m-p/966645#M4675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Dear Jorge,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I upgraded SDK and thi sis ok Now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Aug 2019 19:56:09 GMT</pubDate>
    <dc:creator>davidrozenski</dc:creator>
    <dc:date>2019-08-18T19:56:09Z</dc:date>
    <item>
      <title>SHA-256 calculation problem on large buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SHA-256-calculation-problem-on-large-buffer/m-p/966643#M4673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using fsl_dcp.c driver to calculate SHA-256 and found strange problem, calling functions like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status = DCP_HASH(DCP, &amp;amp;m_handle, kDCP_Sha256, (void*)0x60010000, 1000000, output, &amp;amp;outLength);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never return it will be locked in this loop :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while ((base-&amp;gt;STAT &amp;amp; (uint32_t)handle-&amp;gt;channel) == handle-&amp;gt;channel)&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;located in fsl_dcp.c function :&amp;nbsp;DCP_WaitForChannelComplete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By removing this waiting loop it works and calculation are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If length of buffer is less than 26000 (or close to this) it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:48:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SHA-256-calculation-problem-on-large-buffer/m-p/966643#M4673</guid>
      <dc:creator>davidrozenski</dc:creator>
      <dc:date>2019-08-07T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: SHA-256 calculation problem on large buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SHA-256-calculation-problem-on-large-buffer/m-p/966644#M4674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David Rozenski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply, unfortunately, I'm not able to reproduce the issue that you are seeing. I imported the example code of the SDK 2.6.1 DCP, I comment all other tests and I used the same address and size of your code (&lt;EM&gt;(void*)0x60010000, 1000000, output, &amp;amp;outLength);. &lt;/EM&gt;The DCP didn't lock in any part of the SHA256 process, can you try this and tell me if it works on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:42:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SHA-256-calculation-problem-on-large-buffer/m-p/966644#M4674</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2019-08-15T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: SHA-256 calculation problem on large buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SHA-256-calculation-problem-on-large-buffer/m-p/966645#M4675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Dear Jorge,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I upgraded SDK and thi sis ok Now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Aug 2019 19:56:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SHA-256-calculation-problem-on-large-buffer/m-p/966645#M4675</guid>
      <dc:creator>davidrozenski</dc:creator>
      <dc:date>2019-08-18T19:56:09Z</dc:date>
    </item>
  </channel>
</rss>

