<?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: DES-MAC calculation with SAM AV2 in NFC</title>
    <link>https://community.nxp.com/t5/NFC/DES-MAC-calculation-with-SAM-AV2/m-p/800814#M3978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="320822" data-username="nazar.pelykh@edvantis.com" href="https://community.nxp.com/people/nazar.pelykh@edvantis.com"&gt;Nazar Pelykh&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;hope you are doing great, the information regarding the SAM AV2 is secured under NDA, and the information should be shares using secured communication channel, please&amp;nbsp; create an internal case&amp;nbsp; to help you with this question.&lt;/P&gt;&lt;P&gt;if you have any questions please let me know.&lt;/P&gt;&lt;P&gt;Have a great day !!&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2018 15:22:48 GMT</pubDate>
    <dc:creator>Jonathan_Iglesias</dc:creator>
    <dc:date>2018-06-28T15:22:48Z</dc:date>
    <item>
      <title>DES-MAC calculation with SAM AV2</title>
      <link>https://community.nxp.com/t5/NFC/DES-MAC-calculation-with-SAM-AV2/m-p/800813#M3977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working on solution using SAM AV2 for DES-MAC calculation that uses cipher block chaining (CBC) mode.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;To do it we have tried to store the following types of keys: "(011) 3 key TDEA ISO 10116" and "(110) TDEA ISO 10116 (8-byte MAC)". Then we have used Offline Crypto commands: SAM_ActivateOfflineKey and SAM_Generate_MAC. But we do not have any success.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Note: In this &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;way we can successfully calculate TDEA-CMAC using "(011) 3 key TDEA ISO 10116" key.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;We have some examples with results calculated by DES-MAC (CBC) algorithm. &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;But our results calculated by SAM AV2 are different.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Examples:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC key (64 b): 01 23 45 67 89 AB CD EF&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Note: This DES key we stored twice to form a 2 key TDEA key where the 2 keys are identical.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Sample 1:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Input (28 B): 37 36 35 34 33 32 31 20 4e 6f 77 20 69 73 20 74 68 65 20 74 69 6d 65 20 66 6f 72 20&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (16 b): F1 D3&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (32 b): F1 D3 0F 68&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (48 b): F1 D3 0F 68 49 31&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (64 b): F1 D3 0F 68 49 31 2C A4&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Sample 2:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Input (8 B): B2 3D 1C A6 57 E9 F0 48&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (16 b): 08 73&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (32 b): 08 73 27 20&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (48 b): 08 73 27 20 5F 9D&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAC value (64 b): 08 73 27 20 5F 9D 08 D7&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;We assume that there is a problem with wrong type of key because we have found the folowing information from documentation:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;"DES and TDEA MACs for key types 0 and 1 (bit 3 to 5 in SET are 000b or 001b are CBC-MACs"&lt;BR /&gt;"DES and TDEA MACs for key types 3 and 6 (bit 3 to 5 in SET are 011b or 110b) are CMACs."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Could you please help us with instruction how to calculate DES-MAC (CBC)?&lt;P&gt;Also if there is document that can be useful please provide its name.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If these questions can not be answered in public forum please send us instructions where it can be done.&lt;/P&gt;&lt;P&gt;Our company has valid NDA with NXP and access to docstore.nxp.com&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nazar Pelykh&lt;/P&gt;&lt;P&gt;Edvantis Software Inc.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 11:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/DES-MAC-calculation-with-SAM-AV2/m-p/800813#M3977</guid>
      <dc:creator>nazar_pelykh</dc:creator>
      <dc:date>2018-06-20T11:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: DES-MAC calculation with SAM AV2</title>
      <link>https://community.nxp.com/t5/NFC/DES-MAC-calculation-with-SAM-AV2/m-p/800814#M3978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="320822" data-username="nazar.pelykh@edvantis.com" href="https://community.nxp.com/people/nazar.pelykh@edvantis.com"&gt;Nazar Pelykh&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;hope you are doing great, the information regarding the SAM AV2 is secured under NDA, and the information should be shares using secured communication channel, please&amp;nbsp; create an internal case&amp;nbsp; to help you with this question.&lt;/P&gt;&lt;P&gt;if you have any questions please let me know.&lt;/P&gt;&lt;P&gt;Have a great day !!&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:22:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/DES-MAC-calculation-with-SAM-AV2/m-p/800814#M3978</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2018-06-28T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: DES-MAC calculation with SAM AV2</title>
      <link>https://community.nxp.com/t5/NFC/DES-MAC-calculation-with-SAM-AV2/m-p/800815#M3979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I have created the internal case.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nazar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 09:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/DES-MAC-calculation-with-SAM-AV2/m-p/800815#M3979</guid>
      <dc:creator>nazar_pelykh</dc:creator>
      <dc:date>2018-07-02T09:05:06Z</dc:date>
    </item>
  </channel>
</rss>

