<?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: WriteBinary not working depending on the size</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1165576#M367</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hiii,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have to&amp;nbsp; identified a problem with the WriteBinary command depending on the size of what you are writing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you implement it based on the MW? Is it possible to share the code with us?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 08:44:18 GMT</pubDate>
    <dc:creator>Andrewne</dc:creator>
    <dc:date>2020-10-12T08:44:18Z</dc:date>
    <item>
      <title>WriteBinary not working depending on the size</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1150276#M340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I identified a problem with the WriteBinary command depending on the size of what I'm writing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the size I'm writting is not multiple of 16, sometimes I get a 0x6a80, but if I round the size to the next mutliple of 16, it magically works.&lt;/P&gt;&lt;P&gt;Could you explain me what happened ?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:44:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1150276#M340</guid>
      <dc:creator>antoine_provot</dc:creator>
      <dc:date>2020-09-08T09:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: WriteBinary not working depending on the size</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1150879#M343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Antoine,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you implement it based on the MW? Is it possible to share the code with us? We may try to reproduce this issue here.&lt;/SPAN&gt;&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, 09 Sep 2020 06:49:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1150879#M343</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2020-09-09T06:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: WriteBinary not working depending on the size</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1163007#M366</link>
      <description>&lt;P&gt;Hi, I isolated the problem and I can show it to through a simple example.&lt;/P&gt;&lt;P&gt;First, I only managed to reproduce the problem in encrypted session, maybe it also exist in plain, but I did not manage to reproduce it.&lt;/P&gt;&lt;P&gt;Here's what I did :&lt;/P&gt;&lt;P&gt;I authentifed my MCU with the SE050 with a key (the value is only zeroes). Then, I looped to write in a file already created with a big size (&amp;gt; 500), a single byte, then two bytes, and so on.&lt;/P&gt;&lt;P&gt;At 4 bytes, I had a 0x6a80 and then only 0x6a80 errors until I rebooted the SE050.&lt;/P&gt;&lt;P&gt;For your information, if instead of writing the precise number of bytes, I round the buffer length to the upper multiple of 16, I manage to write as much bytes I want without any problem.&lt;/P&gt;&lt;P&gt;Please find attached an encrypted set of command that is showing the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 15:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1163007#M366</guid>
      <dc:creator>antoine_provot</dc:creator>
      <dc:date>2020-10-05T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: WriteBinary not working depending on the size</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1165576#M367</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hiii,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have to&amp;nbsp; identified a problem with the WriteBinary command depending on the size of what you are writing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you implement it based on the MW? Is it possible to share the code with us?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 08:44:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1165576#M367</guid>
      <dc:creator>Andrewne</dc:creator>
      <dc:date>2020-10-12T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: WriteBinary not working depending on the size</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1201067#M433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/96085"&gt;@antoine_provot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you properly&amp;nbsp; use the&amp;nbsp;WriteBinary command?&amp;nbsp; For example, if you implement this based on the MW, &lt;SPAN&gt;for the second WriteBinrary command and so on you need to set the policy and the file length to NULL. Please kindly refer to the following for details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;sm_status = Se05x_API_WriteBinary(&amp;amp;pSession-&amp;gt;s_ctx,&lt;BR /&gt;&amp;amp;policy,&lt;BR /&gt;objectID,&lt;BR /&gt;0,&lt;BR /&gt;(uint16_t)128,&lt;BR /&gt;&amp;amp;file_data[0],&lt;BR /&gt;1);&lt;BR /&gt;if (sm_status != SM_OK) {&lt;BR /&gt;LOG_E("Se05x_API_WriteBinary Failed");&lt;BR /&gt;status = kStatus_SSS_Fail; &lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;sm_status = Se05x_API_WriteBinary(&amp;amp;pSession-&amp;gt;s_ctx,&lt;BR /&gt;NULL, // policy &amp;lt;==&lt;BR /&gt;objectID,&lt;BR /&gt;1,&lt;BR /&gt;NULL, // file length &amp;lt;==&lt;BR /&gt;&amp;amp;file_data[1],&lt;BR /&gt;2);&lt;BR /&gt;if (sm_status != SM_OK) {&lt;BR /&gt;LOG_E("Se05x_API_WriteBinary Failed");&lt;BR /&gt;status = kStatus_SSS_Fail;&lt;BR /&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>Thu, 17 Dec 2020 08:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1201067#M433</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2020-12-17T08:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: WriteBinary not working depending on the size</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1497786#M849</link>
      <description>&lt;P&gt;The WriteBinary command has to be detected as an issue based on the size of what you are writing.&lt;/P&gt;&lt;P&gt;Is it based on the MW that you implemented it? Let us see the code if it's feasible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://onevanilla.live/" target="_self"&gt;Onevanilla&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 06:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1497786#M849</guid>
      <dc:creator>peacelol</dc:creator>
      <dc:date>2022-07-29T06:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: WriteBinary not working depending on the size</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1497790#M850</link>
      <description>&lt;P&gt;The WriteBinary command has to be detected as an issue based on the size of what you are writing.&lt;/P&gt;&lt;P&gt;Is it based on the MW that you implemented it? Let us see the code if it's feasible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://onevanilla.live/" target="_self"&gt;Onevanilla&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 06:36:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/WriteBinary-not-working-depending-on-the-size/m-p/1497790#M850</guid>
      <dc:creator>peacelol</dc:creator>
      <dc:date>2022-07-29T06:36:42Z</dc:date>
    </item>
  </channel>
</rss>

