<?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>Secure AuthenticationのトピックRe: Create Crypto Object: error 0x6985 (conditions not satisfied)</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/Create-Crypto-Object-error-0x6985-conditions-not-satisfied/m-p/1068834#M294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right. There were some objects pending from a previous demo/example run that prevented new objects from being created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your help!&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 May 2020 15:08:11 GMT</pubDate>
    <dc:creator>jorge_ramirez</dc:creator>
    <dc:date>2020-05-31T15:08:11Z</dc:date>
    <item>
      <title>Create Crypto Object: error 0x6985 (conditions not satisfied)</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Create-Crypto-Object-error-0x6985-conditions-not-satisfied/m-p/1068832#M292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been working with the &lt;STRONG&gt;SE050ARD&lt;/STRONG&gt;&amp;nbsp;for a few months now without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing some code cleanup I enabled the option&amp;nbsp;&lt;STRONG&gt;SSSFTR_SE05X_CREATE_DELETE_CRYPTOOBJ&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;After this, I can no longer function since crypto object creation always fail with &lt;STRONG&gt;0x6985 (conditions not satisfied)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first operation that my stack requires is hmac&amp;nbsp; sha 256; however I cant instantiate it since&amp;nbsp;&lt;STRONG&gt;Se05x_API_CreateCryptoObject&lt;/STRONG&gt; fails returning 0x6985 in&lt;STRONG&gt; sss_se05x_mac_init&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input parameters to&amp;nbsp; Se05x_API_CreateCryptoObject&amp;nbsp; all come from the SE050 stack; could you help me understand what are the conditions that need to be satisfied to be able to create a crypto object? why cant I create a crypto object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input parameters to Se05x_API_CreateCryptoObject&amp;nbsp; are as per the NXP software:&lt;/P&gt;&lt;P&gt;1. cryptoObjectId:&amp;nbsp;&lt;STRONG&gt;kSE05x_CryptoObject_HMAC_SHA256&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2 cryptoContext:&amp;nbsp;&lt;STRONG&gt;kSE05x_CryptoContext_SIGNATURE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. subtype.mac: &lt;STRONG&gt;kSE05x_MACAlgo_HMAC_SHA256&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 06:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Create-Crypto-Object-error-0x6985-conditions-not-satisfied/m-p/1068832#M292</guid>
      <dc:creator>jorge_ramirez</dc:creator>
      <dc:date>2020-05-25T06:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Crypto Object: error 0x6985 (conditions not satisfied)</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Create-Crypto-Object-error-0x6985-conditions-not-satisfied/m-p/1068833#M293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with enabling&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;SSSFTR_SE05X_CREATE_DELETE_CRYPTOOBJ&amp;nbsp;&lt;/STRONG&gt;the functionality in the MW to actually create and delete cryptoobjects gets enabled. Without it the API needed is not available in the MW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have maybe&amp;nbsp;other crypto objects already created? Please check if there is still enough available memory to instantiate the object. Memory consumption for crypto objects is documented in the APDU spec in chapter 8. Memory consumption.&lt;/P&gt;&lt;P&gt;The available NVM and transient memory can be checked with the&amp;nbsp;&lt;STRONG&gt;Se05x_API_GetFreeMemory()&lt;/STRONG&gt; as demonstrated in &lt;STRONG&gt;se05x_minimal&lt;/STRONG&gt;, the parameters&amp;nbsp;&lt;STRONG&gt;kSE05x_MemoryType_TRANSIENT_DESELECT&lt;/STRONG&gt; (transient memory) and&amp;nbsp;&lt;STRONG&gt;kSE05x_MemoryType_PERSISTENT&lt;/STRONG&gt; (NVM memory) can be used to select which memory type should be reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 16:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Create-Crypto-Object-error-0x6985-conditions-not-satisfied/m-p/1068833#M293</guid>
      <dc:creator>michaelsalfer</dc:creator>
      <dc:date>2020-05-27T16:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create Crypto Object: error 0x6985 (conditions not satisfied)</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Create-Crypto-Object-error-0x6985-conditions-not-satisfied/m-p/1068834#M294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right. There were some objects pending from a previous demo/example run that prevented new objects from being created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your help!&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2020 15:08:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Create-Crypto-Object-error-0x6985-conditions-not-satisfied/m-p/1068834#M294</guid>
      <dc:creator>jorge_ramirez</dc:creator>
      <dc:date>2020-05-31T15:08:11Z</dc:date>
    </item>
  </channel>
</rss>

