<?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 CAAM hangs in SHA-1 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504474#M81825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement hardware SHA-1 calculation support for my project.&lt;/P&gt;&lt;P&gt;My platform in Windows Embedded Compact 7&lt;/P&gt;&lt;P&gt;We don't need anything else, just a hardware calculation of SHA-1 which will only be done once.&lt;/P&gt;&lt;P&gt;I got necessary manuals etc. and started my implementation.&lt;/P&gt;&lt;P&gt;Implemented job ring support and tried constructing my job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, job ring interface works for me ok, I managed to run job which just loads 64 bytes of data into class 2 FIFO and it executed just fine.&lt;/P&gt;&lt;P&gt;This would mean that CAAM is functioning ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem starts when I try adding SHA-1 algorithm command: it just hangs in there and job execution hangs.&lt;/P&gt;&lt;P&gt;My job (currently) is very simple:&lt;/P&gt;&lt;P&gt;- header&lt;/P&gt;&lt;P&gt;- fifo load data into class2 message, final&lt;/P&gt;&lt;P&gt;- SHA-1 algorithm, no key, init/fin, class 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would cause SHA algorithm to hang? Did I miss something in initialization?&lt;/P&gt;&lt;P&gt;I tried just to call SHA1 init without of any data feed to FIFO; it still hangs...&lt;/P&gt;&lt;P&gt;(AFAIK it supposed to initialize data structures and then leave)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our system runs HAB in bootloader and most of the CAAM initialization (presumably) happens there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I almost run out of ideas where to look for possible problem(s).&lt;/P&gt;&lt;P&gt;Any help would really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPD Question&lt;/P&gt;&lt;P&gt;Do I need to prime CAAM SHA1 with initial data?&lt;/P&gt;&lt;P&gt;My code does not do it. Could it cause my issues?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2016 11:07:00 GMT</pubDate>
    <dc:creator>AlexeyT</dc:creator>
    <dc:date>2016-05-26T11:07:00Z</dc:date>
    <item>
      <title>CAAM hangs in SHA-1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504474#M81825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement hardware SHA-1 calculation support for my project.&lt;/P&gt;&lt;P&gt;My platform in Windows Embedded Compact 7&lt;/P&gt;&lt;P&gt;We don't need anything else, just a hardware calculation of SHA-1 which will only be done once.&lt;/P&gt;&lt;P&gt;I got necessary manuals etc. and started my implementation.&lt;/P&gt;&lt;P&gt;Implemented job ring support and tried constructing my job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, job ring interface works for me ok, I managed to run job which just loads 64 bytes of data into class 2 FIFO and it executed just fine.&lt;/P&gt;&lt;P&gt;This would mean that CAAM is functioning ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem starts when I try adding SHA-1 algorithm command: it just hangs in there and job execution hangs.&lt;/P&gt;&lt;P&gt;My job (currently) is very simple:&lt;/P&gt;&lt;P&gt;- header&lt;/P&gt;&lt;P&gt;- fifo load data into class2 message, final&lt;/P&gt;&lt;P&gt;- SHA-1 algorithm, no key, init/fin, class 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would cause SHA algorithm to hang? Did I miss something in initialization?&lt;/P&gt;&lt;P&gt;I tried just to call SHA1 init without of any data feed to FIFO; it still hangs...&lt;/P&gt;&lt;P&gt;(AFAIK it supposed to initialize data structures and then leave)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our system runs HAB in bootloader and most of the CAAM initialization (presumably) happens there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I almost run out of ideas where to look for possible problem(s).&lt;/P&gt;&lt;P&gt;Any help would really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPD Question&lt;/P&gt;&lt;P&gt;Do I need to prime CAAM SHA1 with initial data?&lt;/P&gt;&lt;P&gt;My code does not do it. Could it cause my issues?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 11:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504474#M81825</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2016-05-26T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM hangs in SHA-1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504475#M81826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deactivated user​ are you able to help here?&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 14:18:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504475#M81826</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2016-05-26T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM hangs in SHA-1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504476#M81827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally managed to solve the issue.&lt;/P&gt;&lt;P&gt;Problem was in FIFO load command - I got 2 configuration bits set to wrong values leading to hang.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 14:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504476#M81827</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2016-05-27T14:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM hangs in SHA-1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504477#M81828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexey,&lt;/P&gt;&lt;P&gt;please name the wrong configuration bits!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr, Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 15:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-hangs-in-SHA-1/m-p/504477#M81828</guid>
      <dc:creator>michaelmaennel</dc:creator>
      <dc:date>2017-01-09T15:52:50Z</dc:date>
    </item>
  </channel>
</rss>

