<?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 MMCAU SHA256 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887740#M52508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the example mmcau_api. I test the SHA256 with the proposed test vector. Here it is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;static uint8_t g_testSha[TEST_LENGTH] = {0x54, 0x68, 0x65, 0x20, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x20, 0x62, 0x72, 0x6f,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x77, 0x6e, 0x20, 0x66, 0x6f, 0x78, 0x20, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x20,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x6f, 0x76, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x61, 0x7a, 0x79,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x20, 0x64, 0x6f, 0x67, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x58};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I get is&amp;nbsp;&lt;/P&gt;&lt;P&gt;{3618175923, 131563668, 1774885564, 2953326159, 2371244516, 1832704886, 755159231, 935978386}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I test the same vector on line here&amp;nbsp;&lt;A class="link-titled" href="https://www.fileformat.info/tool/hash.htm?hex=0x54%2C+++0x68%2C+0x65%2C+0x20%2C+0x71%2C+0x75%2C+0x69%2C+0x63%2C+0x6b%2C+0x20%2C+0x62%2C+0x72%2C+0x6f%2C++++++++++++++++++++++++++++++++++++++++++0x77%2C+0x6e%2C+0x20%2C+0x66%2C+0x6f%2C+0x78%2C+0x20%2C+0x6a%2C+0x75%2C+0x6d%2C+0x70%2C+0x73%2C+0x20%2C++++++++++++++++++++++++++++++++++++++++++0x6f%2C+0x76%2C+0x65%2C+0x72%2C+0x20%2C+0x74%2C+0x68%2C+0x65%2C+0x20%2C+0x6c%2C+0x61%2C+0x7a%2C+0x79%2C++++++++++++++++++++++++++++++++++++++++++0x20%2C+0x64%2C+0x6f%2C+0x67%2C+0x80%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C++++++++++++++++++++++++++++++++++++++++++0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x01%2C+0x58" title="https://www.fileformat.info/tool/hash.htm?hex=0x54%2C+++0x68%2C+0x65%2C+0x20%2C+0x71%2C+0x75%2C+0x69%2C+0x63%2C+0x6b%2C+0x20%2C+0x62%2C+0x72%2C+0x6f%2C++++++++++++++++++++++++++++++++++++++++++0x77%2C+0x6e%2C+0x20%2C+0x66%2C+0x6f%2C+0x78%2C+0x20%2C+0x6a%2C+0x75%2C+0x6d%2C+0x70%2C+0x73%2C+0x20%2C++++++++++++++++++++++++++++++++++++++++++0x6f%2C+0x76%2C+0x65%2C+0x72%2C+0x20%2C+0x74%2C+0x68%2C+0x65%2C+0x20%2C+0x6c%2C+0x61%2C+0x7a%2C+0x79%2C++++++++++++++++++++++++++++++++++++++++++0x20%2C+0x64%2C+0x6f%2C+0x67%2C+0x80%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C++++++++++++++++++++++++++++++++++++++++++0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x01%2C+0x58"&gt;https://www.fileformat.info/tool/hash.htm?hex=0x54%2C+++0x68%2C+0x65%2C+0x20%2C+0x71%2C+0x75%2C+0x69%2C+0x63%2C+0x6b%2C+…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I get the result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="color: #333333; background-color: transparent; border-width: 1px 1px 1px 0px; border-style: solid solid solid initial; border-color: #dddddd #dddddd #dddddd initial; margin-bottom: 20px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="background-color: #f9f9f9; border-top: 1px solid #dddddd; border-left: 1px solid #dddddd; padding: 8px;"&gt;d4b8527d7a673b096ba19aabfb458c357a43f008d214aac413ee18cf29485fe2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;It does not match. So what is wrong???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2019 13:29:02 GMT</pubDate>
    <dc:creator>pietrodicastri</dc:creator>
    <dc:date>2019-02-25T13:29:02Z</dc:date>
    <item>
      <title>MMCAU SHA256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887740#M52508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the example mmcau_api. I test the SHA256 with the proposed test vector. Here it is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;static uint8_t g_testSha[TEST_LENGTH] = {0x54, 0x68, 0x65, 0x20, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x20, 0x62, 0x72, 0x6f,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x77, 0x6e, 0x20, 0x66, 0x6f, 0x78, 0x20, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x20,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x6f, 0x76, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x61, 0x7a, 0x79,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x20, 0x64, 0x6f, 0x67, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x58};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I get is&amp;nbsp;&lt;/P&gt;&lt;P&gt;{3618175923, 131563668, 1774885564, 2953326159, 2371244516, 1832704886, 755159231, 935978386}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I test the same vector on line here&amp;nbsp;&lt;A class="link-titled" href="https://www.fileformat.info/tool/hash.htm?hex=0x54%2C+++0x68%2C+0x65%2C+0x20%2C+0x71%2C+0x75%2C+0x69%2C+0x63%2C+0x6b%2C+0x20%2C+0x62%2C+0x72%2C+0x6f%2C++++++++++++++++++++++++++++++++++++++++++0x77%2C+0x6e%2C+0x20%2C+0x66%2C+0x6f%2C+0x78%2C+0x20%2C+0x6a%2C+0x75%2C+0x6d%2C+0x70%2C+0x73%2C+0x20%2C++++++++++++++++++++++++++++++++++++++++++0x6f%2C+0x76%2C+0x65%2C+0x72%2C+0x20%2C+0x74%2C+0x68%2C+0x65%2C+0x20%2C+0x6c%2C+0x61%2C+0x7a%2C+0x79%2C++++++++++++++++++++++++++++++++++++++++++0x20%2C+0x64%2C+0x6f%2C+0x67%2C+0x80%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C++++++++++++++++++++++++++++++++++++++++++0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x01%2C+0x58" title="https://www.fileformat.info/tool/hash.htm?hex=0x54%2C+++0x68%2C+0x65%2C+0x20%2C+0x71%2C+0x75%2C+0x69%2C+0x63%2C+0x6b%2C+0x20%2C+0x62%2C+0x72%2C+0x6f%2C++++++++++++++++++++++++++++++++++++++++++0x77%2C+0x6e%2C+0x20%2C+0x66%2C+0x6f%2C+0x78%2C+0x20%2C+0x6a%2C+0x75%2C+0x6d%2C+0x70%2C+0x73%2C+0x20%2C++++++++++++++++++++++++++++++++++++++++++0x6f%2C+0x76%2C+0x65%2C+0x72%2C+0x20%2C+0x74%2C+0x68%2C+0x65%2C+0x20%2C+0x6c%2C+0x61%2C+0x7a%2C+0x79%2C++++++++++++++++++++++++++++++++++++++++++0x20%2C+0x64%2C+0x6f%2C+0x67%2C+0x80%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C++++++++++++++++++++++++++++++++++++++++++0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x00%2C+0x01%2C+0x58"&gt;https://www.fileformat.info/tool/hash.htm?hex=0x54%2C+++0x68%2C+0x65%2C+0x20%2C+0x71%2C+0x75%2C+0x69%2C+0x63%2C+0x6b%2C+…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I get the result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="color: #333333; background-color: transparent; border-width: 1px 1px 1px 0px; border-style: solid solid solid initial; border-color: #dddddd #dddddd #dddddd initial; margin-bottom: 20px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="background-color: #f9f9f9; border-top: 1px solid #dddddd; border-left: 1px solid #dddddd; padding: 8px;"&gt;d4b8527d7a673b096ba19aabfb458c357a43f008d214aac413ee18cf29485fe2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;It does not match. So what is wrong???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 13:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887740#M52508</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2019-02-25T13:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: MMCAU SHA256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887741#M52509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked in the uTasker project (supporting SW, mmCAN and LTC SHA256):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; ALIGNED_BUFFER text &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x54&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x68&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x65&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x71&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x75&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x69&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x63&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6b&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x62&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x72&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6f&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;0x77&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6e&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x66&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6f&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x78&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x75&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6d&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x70&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x73&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;0x6f&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x76&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x65&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x72&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x74&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x68&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x65&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6c&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x61&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x7a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x79&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;0x20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x64&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x6f&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x67&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x80&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x01&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x58&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;fnSHA256&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;text&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ucData&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; recovered&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ucData&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;64&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SHA_START_CALCULATE_TERMINATE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;32&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;                         &lt;SPAN class="comment token"&gt;// the HASH is always 32 bytes in length&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;fnDebugHex&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;recovered&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ucData&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;WITH_SPACE &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;sizeof&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;char&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; WITH_LEADIN&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output it gives is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;0xd4 0xb8 0x52 0x7d 0x7a 0x67 0x3b 0x09 0x6b 0xa1 0x9a 0xab 0xfb 0x45 0x8c 0x35 0x7a 0x43 0xf0 0x08 0xd2 0x14 0xaa 0xc4 0x13 0xee 0x18 0xcf 0x29 0x48 0x5f 0xe2&lt;/P&gt;&lt;P&gt;which matches with the one from your link.&lt;/P&gt;&lt;P&gt;1. It looks like you are displaying the result in decimal form - try displaying in hex instead.&lt;BR /&gt;2. Also ensure that you are displaying as a string of binary values rather than risking little-/big endian confusion.&lt;BR /&gt;3. If using mmCAU ensure that your buffers are long word aligned since the crypto accelerators tend to require this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions, training and support: &lt;A href="http://www.utasker.com/kinetis.html" rel="nofollow noopener noreferrer" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 19:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887741#M52509</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-02-25T19:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: MMCAU SHA256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887742#M52510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei Mark&lt;/P&gt;&lt;P&gt;Good to find You here also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested the source code as is in the example and I expect it should work. I have here the FRDMK64 and the TOWER for the KV58.&lt;/P&gt;&lt;P&gt;Both of them give the same wrong result.&lt;/P&gt;&lt;P&gt;The HEX counterpart is here and it does not help. All of the buffers are correctly aligned.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63691iCE621CA434D95A3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's the dump of the hex&lt;/P&gt;&lt;P&gt;If you have suggestionns are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 08:01:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887742#M52510</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2019-02-26T08:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: MMCAU SHA256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887743#M52511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also wandering what is the&amp;nbsp;LTC SHA ???&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 08:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887743#M52511</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2019-02-26T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: MMCAU SHA256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887744#M52512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LTC is the Low power trusted cryptography module found in some of Kinetis parts (it may be instead of mmCAU or it may be in addition to mmCAU, but it is only in a few parts).&lt;/P&gt;&lt;P&gt;I also had some difficulties with the SHA256 in mmCAU and needed to do additional research to get it working:&lt;/P&gt;&lt;P&gt;See &lt;A href="https://community.nxp.com/thread/486404"&gt;SHA-256 with mmCAU in K64&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have access to the professional version of the uTasker project you can find the interface in &lt;EM&gt;crypto.c&lt;/EM&gt; which handles all of the nuances (alignment, padding, endian-ness) needed by the various crypto accelerators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 10:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887744#M52512</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-02-26T10:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: MMCAU SHA256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887745#M52513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark&lt;/P&gt;&lt;P&gt;There is a good new now. I tried to use the wrapper of the wolfssl and it is working in this way. I will try to catch what is problem.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 11:46:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MMCAU-SHA256/m-p/887745#M52513</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2019-02-26T11:46:53Z</dc:date>
    </item>
  </channel>
</rss>

