<?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: Generate RSA Key pair SE050</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443415#M768</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your answer, for my use case i want devellope the APDU by my own, so high level function will not work for me, this is why im asking about more information on the APDU, i checked already the doc, demos and examples and they all depend on high level layers (sss , MW), so i want understand more on the APDU construction for example if i try to create an AES key is this apdu correct :&lt;/P&gt;&lt;P&gt;uint8_t apdu[26]={0x80,0x01,0x03,0x00,0x1A,0x11,0x09,0x08,0x00,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x12,0x00,0x00,0x41,0x09,0x70,0x70,0x70,0x72,};&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have a great day.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 12:41:25 GMT</pubDate>
    <dc:creator>ninomedj</dc:creator>
    <dc:date>2022-04-13T12:41:25Z</dc:date>
    <item>
      <title>Generate RSA Key pair SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443235#M766</link>
      <description>&lt;P&gt;Hi everyone, i want to generate an RSA key pair, im using AN12413 WriteRsaKey Apdu:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ninomedj_0-1649834763234.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176727i9B135B414A5F2713/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ninomedj_0-1649834763234.png" alt="ninomedj_0-1649834763234.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but i find it hard to construct the apdu&amp;nbsp; especially the policy part, for example if i took an APDU that &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/89775" target="_blank"&gt;@nicolaponzevero&lt;/A&gt;&amp;nbsp;constructed from his post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Secure-Authentication/SE050-Reading-the-modulus-of-an-RSA-KEY-PAIR-CRT-object/m-p/1410463" target="_blank"&gt;https://community.nxp.com/t5/Secure-Authentication/SE050-Reading-the-modulus-of-an-RSA-KEY-PAIR-CRT-object/m-p/1410463&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[15:23:31.118]:[DEBUG] SEND [31] APDU_DATA&amp;nbsp; 80 01 62 00 1A 11 09&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;&lt;SPAN&gt;08 00 00 00 00&amp;nbsp;&lt;I&gt;00 24 00 00&lt;/I&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;41 04&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;70 70 70 70&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;42 02 02 00 48 03&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;01 00 01.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for example the P1 field that represent the key type should be 0x60 to define a key pair but here its 0x62, also i didn't understand how to construct the policy filed in this case:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;&lt;SPAN&gt;08 00 00 00 00&amp;nbsp;&lt;I&gt;00 24 00 00,&amp;nbsp;&lt;/I&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;and finally in TAG2 where we define the key size in this case &lt;STRONG&gt;&lt;SPAN&gt;512=0x200&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;, so why there's another 0x02 before 0x02 0x00.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Im sorry if there's a lot of questions, but i hope you can help me understand better, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 07:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443235#M766</guid>
      <dc:creator>ninomedj</dc:creator>
      <dc:date>2022-04-13T07:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Generate RSA Key pair SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443278#M767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197719"&gt;@ninomedj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed it is always recommended to build your application based on the MW where you may easily find docs for the topics you are looking for.&lt;/P&gt;
&lt;P&gt;How to&amp;nbsp;&lt;SPAN&gt;construct the policy: Please refer to "&lt;/SPAN&gt;&lt;SPAN&gt;simw-top/doc/demos/se05x/se05x_policy/Readme.html " for details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Create APDU commands directly if your application just needs some of them: Please refer to "simw-top/doc/demos/se05x/se05x_GetAPDUBuffer/Readme.html" for details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A ready to use RSA demo: Please refer to "simw-top/doc/sss/ex/rsa/readme.html" for details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may download the latest version from&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/Download?colCode=SE-PLUG-TRUST-MW_04.01.01&amp;amp;appType=license" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=SE-PLUG-TRUST-MW_04.01.01&amp;amp;appType=license&lt;/A&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope that helps,&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, 13 Apr 2022 08:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443278#M767</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2022-04-13T08:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generate RSA Key pair SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443415#M768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your answer, for my use case i want devellope the APDU by my own, so high level function will not work for me, this is why im asking about more information on the APDU, i checked already the doc, demos and examples and they all depend on high level layers (sss , MW), so i want understand more on the APDU construction for example if i try to create an AES key is this apdu correct :&lt;/P&gt;&lt;P&gt;uint8_t apdu[26]={0x80,0x01,0x03,0x00,0x1A,0x11,0x09,0x08,0x00,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x12,0x00,0x00,0x41,0x09,0x70,0x70,0x70,0x72,};&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have a great day.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443415#M768</guid>
      <dc:creator>ninomedj</dc:creator>
      <dc:date>2022-04-13T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generate RSA Key pair SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443931#M769</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197719"&gt;@ninomedj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually&amp;nbsp;SE050 IoT applet defines APDUs according to&amp;nbsp;&lt;A href="https://www.iso.org/standard/54550.html" target="_blank"&gt;ISO - ISO/IEC 7816-4:2013 - Identification cards — Integrated circuit cards — Part 4: Organization, security and commands for interchange&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;so please kindly fetch the above spec before going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also NXP provide a Nano version package which doesn't contain so high level functions as the MW,&amp;nbsp; and it just consumes ~1KB SRAM of the host controller, so if your project has memory constraint , you may use this package instead to speed up your development . Please refer to&amp;nbsp;&lt;A href="https://github.com/NXPPlugNTrust/nano-package" target="_blank"&gt;https://github.com/NXPPlugNTrust/nano-package&lt;/A&gt;&amp;nbsp;for more details.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 08:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Generate-RSA-Key-pair-SE050/m-p/1443931#M769</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2022-04-14T08:08:25Z</dc:date>
    </item>
  </channel>
</rss>

