<?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 Does any WriteBinary example exist? in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1159167#M350</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for quick evalution it would be fine to write and read binary files to/from SE050 (to get a whole chain of instructions manually run).&lt;/P&gt;&lt;P&gt;I can´t find any example program or ssscli command to do so.&lt;/P&gt;&lt;P&gt;Is there any program/ssscli command available? If not, could you provide one?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 07:56:38 GMT</pubDate>
    <dc:creator>simon_ger</dc:creator>
    <dc:date>2020-09-25T07:56:38Z</dc:date>
    <item>
      <title>Does any WriteBinary example exist?</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1159167#M350</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for quick evalution it would be fine to write and read binary files to/from SE050 (to get a whole chain of instructions manually run).&lt;/P&gt;&lt;P&gt;I can´t find any example program or ssscli command to do so.&lt;/P&gt;&lt;P&gt;Is there any program/ssscli command available? If not, could you provide one?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 07:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1159167#M350</guid>
      <dc:creator>simon_ger</dc:creator>
      <dc:date>2020-09-25T07:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does any WriteBinary example exist?</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1161136#M356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178413"&gt;@simon_ger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually there is an MW example for this function, and you may find it in the demo of "C:\se050_middleware\simw-top\demos\se05x\se05x_Delete_and_test_provision", the code is something as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="se050 write binary demo.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126532i61D338D31F5DD258/image-size/large?v=v2&amp;amp;px=999" role="button" title="se050 write binary demo.png" alt="se050 write binary demo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1161136#M356</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2020-09-30T07:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Does any WriteBinary example exist?</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1161253#M362</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sorry, my first post was not very precise: I would like to have a example program which I can pass my own binary file to. E.g. like cmd-line parameter.&lt;/P&gt;&lt;P&gt;Is there any?&lt;/P&gt;&lt;P&gt;It would be fine to be able to "play" a whole chain of steps just by example programs (i.e. write data, gen keys, do signing, read, verify). So we could do the whole steps once manually for evaluation.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 10:13:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1161253#M362</guid>
      <dc:creator>simon_ger</dc:creator>
      <dc:date>2020-09-30T10:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Does any WriteBinary example exist?</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1179333#M404</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178413"&gt;@simon_ger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WriteBinary is e.g. used in ssscli to store a certificate on the SE:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;ssscli set cert [keyid] [cert] &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;on example&amp;nbsp;se05x_InjectCertificate here sss_key_store_set_key is used with the type of an binary (kSSS_CipherType_Binary) which ends up writing it as binary as well:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;LOG_I("Injecting ECC certificate at 0x%08X", ecc_object_id);
status =
sss_key_store_set_key(&amp;amp;pCtx-&amp;gt;ks, &amp;amp;ecc_cert_object, ecc_cert, sizeof(ecc_cert), sizeof(ecc_cert) * 8, NULL, 0);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;On example se05x_delete_and_test_provision the underlying API to write a binary is directly called:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;sw_status = Se05x_API_WriteBinary(&amp;amp;pSession-&amp;gt;s_ctx,
NULL,
kSE05x_AppletResID_UNIQUE_ID,
0,
(uint16_t)uidLen,
const_uid,
uidLen);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 09:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Does-any-WriteBinary-example-exist/m-p/1179333#M404</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2020-11-06T09:00:31Z</dc:date>
    </item>
  </channel>
</rss>

