<?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: PKCS#11 not working on SE050 in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1747725#M1417</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111946"&gt;@msalvinik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your question has been submitted to our expert team for analyzation. Thanks for your patience!&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>Fri, 27 Oct 2023 08:45:30 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2023-10-27T08:45:30Z</dc:date>
    <item>
      <title>PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1746784#M1415</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm testing &lt;STRONG&gt;PKCS#11&lt;/STRONG&gt; on SE050 chip using a &lt;STRONG&gt;OM-SE050ARD&lt;/STRONG&gt; board (SE050C chip mounted on it) connected through I2C to a i.MX8MN custom SoM. I'm using the &lt;STRONG&gt;Plug &amp;amp; Trust MW v04.03.01&lt;/STRONG&gt; with OpenSC 0.22 (PKCS#11 v.2.40).&lt;/P&gt;&lt;P&gt;I'm following the documentation contained in the middleware package (simw-top/doc/plugins/pkcs11.html, "8.8. PKCS#11 Standalone Library").&lt;/P&gt;&lt;P&gt;When I try to sign a file with SHA256-RSA-PKCS (as reported in documentation) I get the error&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;error: PKCS11 function C_SignUpdate failed: rv = CKR_FUNCTION_NOT_SUPPORTED (0x54)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here are the commands executed:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;# chip reset&lt;/P&gt;&lt;P&gt;ssscli connect se05x t1oi2c /dev/i2c-2&lt;/P&gt;&lt;P&gt;ssscli se05x reset&lt;BR /&gt;sss :INFO :atr (Len=35)&lt;BR /&gt;00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08&lt;BR /&gt;01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41&lt;BR /&gt;54 50 4F&lt;BR /&gt;sss :WARN :Communication channel is Plain.&lt;BR /&gt;sss :WARN :!!!Not recommended for production use.!!!&lt;/P&gt;&lt;P&gt;ssscli disconnect&lt;/P&gt;&lt;P&gt;# example file creation&lt;/P&gt;&lt;P&gt;echo Hello &amp;gt; myfile&lt;/P&gt;&lt;P&gt;# needed exports&lt;/P&gt;&lt;P&gt;export EX_SSS_BOOT_SSS_PORT=/dev/i2c-2&lt;/P&gt;&lt;P&gt;export PKCS11_MODULE=/usr/lib/libsss_pkcs11.so&lt;/P&gt;&lt;P&gt;# keypair generation&lt;BR /&gt;pkcs11-tool --module $PKCS11_MODULE --keypairgen --key-type rsa:1024 --label "sss:20202020"&lt;BR /&gt;Using slot 0 with a present token (0x1)&lt;BR /&gt;smCom :WARN :Invalid conn_ctx&lt;BR /&gt;App :INFO :Using PortName='/dev/i2c-2' (ENV: EX_SSS_BOOT_SSS_PORT=/dev/i2c-2)&lt;BR /&gt;sss :INFO :atr (Len=35)&lt;BR /&gt;00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08&lt;BR /&gt;01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41&lt;BR /&gt;54 50 4F&lt;BR /&gt;sss :WARN :Communication channel is Plain.&lt;BR /&gt;sss :WARN :!!!Not recommended for production use.!!!&lt;BR /&gt;Key pair generated:&lt;BR /&gt;Private Key Object; RSA&lt;BR /&gt;label: sss:20202020&lt;BR /&gt;ID: 20202020&lt;BR /&gt;Usage: decrypt, sign&lt;BR /&gt;Access: sensitive, always sensitive&lt;BR /&gt;Allowed mechanisms: RSA-PKCS,SHA1-RSA-PKCS,SHA224-RSA-PKCS,SHA256-RSA-PKCS,SHA384-RSA-PKCS,SHA512-RSA-PKCS,RSA-PKCS-PSS,SHA1-RSA-PKCS-PSS,SHA224-RSA-PKCS-PSS,SHA256-RSA-PKCS-PSS,SHA384-RSA-PKCS-PSS,SHA512-RSA-PKCS-PSS,RSA-PKCS-OAEP&lt;BR /&gt;Public Key Object; RSA 1024 bits&lt;BR /&gt;label: sss:20202020&lt;BR /&gt;ID: 20202020&lt;BR /&gt;Usage: none&lt;BR /&gt;Access: none&lt;/P&gt;&lt;P&gt;# signing&lt;BR /&gt;pkcs11-tool --module $PKCS11_MODULE --sign --label sss:20202020 -m SHA256-RSA-PKCS --slot 1 -i myfile -o myfile.sig&lt;BR /&gt;smCom :WARN :Invalid conn_ctx&lt;BR /&gt;App :INFO :Using PortName='/dev/i2c-2' (ENV: EX_SSS_BOOT_SSS_PORT=/dev/i2c-2)&lt;BR /&gt;sss :INFO :atr (Len=35)&lt;BR /&gt;00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08&lt;BR /&gt;01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41&lt;BR /&gt;54 50 4F&lt;BR /&gt;sss :WARN :Communication channel is Plain.&lt;BR /&gt;sss :WARN :!!!Not recommended for production use.!!!&lt;BR /&gt;Using signature algorithm SHA256-RSA-PKCS&lt;BR /&gt;error: PKCS11 function C_SignUpdate failed: rv = CKR_FUNCTION_NOT_SUPPORTED (0x54)&lt;BR /&gt;Aborting.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Attached the cmake configuration used to build the middleware.&lt;/P&gt;&lt;P&gt;How can I solve this issue?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 07:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1746784#M1415</guid>
      <dc:creator>msalvinik</dc:creator>
      <dc:date>2023-10-26T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1746911#M1416</link>
      <description>&lt;P&gt;I found this thread &lt;A href="https://community.nxp.com/t5/Secure-Authentication/Broken-pkcs11-sign-and-verify-in-SDK-SE05x-MW-v04-03-00/m-p/1613443" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Secure-Authentication/Broken-pkcs11-sign-and-verify-in-SDK-SE05x-MW-v04-03-00/m-p/1613443&lt;/A&gt; where&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/155293"&gt;@vishwanchandapu&lt;/a&gt; got the same error.&lt;/P&gt;&lt;P&gt;As &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt; stated, hash+encrypt in one step is not supported at the moment. Then I split the hash and encryption steps separately, as &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt; suggested, and commands worked properly. I suggest to update the documentation.&lt;/P&gt;&lt;P&gt;Symmetrically I suppose that also verification does not work and should be done in two steps: signature decryption and resulting hash comparison with original one.&lt;/P&gt;&lt;P&gt;But trying to decrypt the signature using RSA-PCKS results in the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;pkcs11-tool --module $PKCS11_MODULE --decrypt --label sss:20202020 -m RSA-PKCS -i myfile.signature -o myfile.decrypted&lt;/P&gt;&lt;P&gt;Using slot 0 with a present token (0x1)&lt;BR /&gt;smCom :WARN :Invalid conn_ctx&lt;BR /&gt;App :INFO :Using PortName='/dev/i2c-2' (ENV: EX_SSS_BOOT_SSS_PORT=/dev/i2c-2)&lt;BR /&gt;sss :INFO :atr (Len=35)&lt;BR /&gt;00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08&lt;BR /&gt;01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41&lt;BR /&gt;54 50 4F&lt;BR /&gt;sss :WARN :Communication channel is Plain.&lt;BR /&gt;sss :WARN :!!!Not recommended for production use.!!!&lt;BR /&gt;Using decrypt algorithm RSA-PKCS&lt;BR /&gt;sss :WARN :nxEnsure:'ret == SM_OK' failed. At Line:7026 Function:sss_se05x_TXn&lt;BR /&gt;PKCS11:ERROR:sss_asymmetric_decrypt failed&lt;BR /&gt;error: PKCS11 function C_Decrypt failed: rv = CKR_FUNCTION_FAILED (0x6)&lt;BR /&gt;Aborting.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 10:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1746911#M1416</guid>
      <dc:creator>msalvinik</dc:creator>
      <dc:date>2023-10-26T10:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1747725#M1417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111946"&gt;@msalvinik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your question has been submitted to our expert team for analyzation. Thanks for your patience!&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>Fri, 27 Oct 2023 08:45:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1747725#M1417</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-10-27T08:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1752269#M1422</link>
      <description>&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;We are looking forward to receiving a response.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;--&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Marco Cavallini | KOAN sas&lt;BR /&gt;Bergamo - Italia&lt;BR /&gt;embedded software engineering&lt;BR /&gt;&lt;A href="https://KoanSoftware.com" target="_blank"&gt;https://KoanSoftware.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 10:36:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1752269#M1422</guid>
      <dc:creator>marcocavallini</dc:creator>
      <dc:date>2023-11-04T10:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1752669#M1426</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/6688"&gt;@marcocavallini&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111946"&gt;@msalvinik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is confirmed as an issue in PKCS11 library, and we are working on to fix it, but not sure if it meets your timeline, for a quick solution, maybe you can use some older MW version instead, in&amp;nbsp;&lt;SPAN&gt;our tests MW version 04.01.01 is working.&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>Mon, 06 Nov 2023 08:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1752669#M1426</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-11-06T08:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1755625#M1433</link>
      <description>&lt;P&gt;Hi &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 update.&lt;/P&gt;&lt;P&gt;Where can we download the 04.01.01 middleware version? On the NXP site there is only the current version 04.03.01.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 13:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1755625#M1433</guid>
      <dc:creator>msalvinik</dc:creator>
      <dc:date>2023-11-10T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1756112#M1436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111946"&gt;@msalvinik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually it is not available on the public web, but if you need it you may create a ticket via the case portal. We may share with you then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly refer to&amp;nbsp;&lt;A href="https://www.nxp.com/video/tutorial-for-nxp-support-case-portal:NCP-VIDEO" target="_blank"&gt;https://www.nxp.com/video/tutorial-for-nxp-support-case-portal:NCP-VIDEO&lt;/A&gt;&amp;nbsp;for more details.&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>Mon, 13 Nov 2023 08:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1756112#M1436</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-11-13T08:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1756158#M1437</link>
      <description>I can't find where to create a ticket via the case portal</description>
      <pubDate>Mon, 13 Nov 2023 09:03:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1756158#M1437</guid>
      <dc:creator>marcocavallini</dc:creator>
      <dc:date>2023-11-13T09:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS#11 not working on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1756613#M1441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/6688"&gt;@marcocavallini&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly refer to the following for details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_0-1699931014943.png" style="width: 541px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/249652i2E32D4739142F911/image-dimensions/541x173?v=v2" width="541" height="173" role="button" title="Kan_Li_0-1699931014943.png" alt="Kan_Li_0-1699931014943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_1-1699931045658.png" style="width: 586px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/249653i394BCBDDBC00E760/image-dimensions/586x214?v=v2" width="586" height="214" role="button" title="Kan_Li_1-1699931045658.png" alt="Kan_Li_1-1699931045658.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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 03:04:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS-11-not-working-on-SE050/m-p/1756613#M1441</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-11-14T03:04:33Z</dc:date>
    </item>
  </channel>
</rss>

