<?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: Object policy issue on SE050 in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1363034#M606</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191996"&gt;@Exocet&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the auth id for&amp;nbsp;&lt;SPAN&gt;Object (0x100)? If it is the UserID 0x7AFFFFFF, I don't think you can access this object in the default session.&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>Thu, 28 Oct 2021 07:03:26 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2021-10-28T07:03:26Z</dc:date>
    <item>
      <title>Object policy issue on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1350149#M594</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I`m trying to implement a very simple use case with SE050. The secure element administrator must create a set of keys that must not be overwritten or deleted. The normal user could use the key only under the policy rules.&lt;/P&gt;&lt;P&gt;No matter how I create the policy, the Sign/Verify can still be performed despite assigning a special singing deny policy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I`m using&amp;nbsp;Auth Obj ID as 0 because I want the policy to be applied for all users.&lt;/P&gt;&lt;P&gt;I have a few questions:&lt;BR /&gt;1. Is it possible to create an object(asymkey or binary file) with special policy for signing/encryption for example? How?&lt;/P&gt;&lt;P&gt;2. How would a policy assigned to an object be different for multiple users ? Normal user canot delete an object, only the super user could delete the object.&lt;BR /&gt;3. How to perform authentication to the Administrator and then as normal user ? For example "ssscli connect se05x vcom COM4 --auth_type UserID" seem generic and misleading.&lt;/P&gt;&lt;P&gt;Please find below the ssscli commands. I have run the execute se05x_Delete_and_test_provision.exe before. Do you encounter a similar issue, or this needs a different approach?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;ssscli connect se05x vcom COM4&lt;BR /&gt;ssscli policy asymkey nosign 0 --sign 0 --verify 0&lt;/P&gt;&lt;P&gt;ssscli policy dump nosign&lt;/P&gt;&lt;P&gt;Created object policy:&lt;/P&gt;&lt;P&gt;Key_type : Asymmetric_Key&lt;BR /&gt;Auth Obj ID : 0x0&lt;BR /&gt;Sign : False&lt;BR /&gt;Verify : False&lt;BR /&gt;Encrypt : True&lt;BR /&gt;Decrypt : True&lt;BR /&gt;Key Derive : True&lt;BR /&gt;Wrap : True&lt;BR /&gt;Generate : True&lt;BR /&gt;Write : True&lt;BR /&gt;Read : True&lt;BR /&gt;Import Export : True&lt;BR /&gt;Key Agreement : True&lt;BR /&gt;Attestation : True&lt;BR /&gt;forbid_derived_output : False&lt;/P&gt;&lt;P&gt;Policy in hex:&lt;/P&gt;&lt;P&gt;08 00 00 00 00 07 F8 10 00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ssscli connect se05x vcom COM4&lt;BR /&gt;ssscli generate rsa 0x400 2048 --policy_name nosign&lt;/P&gt;&lt;P&gt;echo 122&amp;gt;&amp;gt;in.txt&lt;BR /&gt;ssscli sign 0x400 in.txt out.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:\Projects\Se050_Middleware\SE-PLUG-TRUST-MW _v3_3_0\simw-top\binaries\PCWindows\ssscli&amp;gt;ssscli generate rsa 400 2048 --policy_name nosign&lt;BR /&gt;Reading policy from file path:&lt;BR /&gt;c:\Projects\Se050_Middleware\SE-PLUG-TRUST-MW _v3_3_0\simw-top\binaries\PCWindows\ssscli\policy\ssscli_obj_policy_nosign.pkl&lt;BR /&gt;Generating RSA Key Pair at KeyID = 0x00000400, bits=2048&lt;BR /&gt;Opening COM Port 'COM4'&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 with UserID (But Plain).&lt;BR /&gt;sss :WARN :!!!Not recommended for production use.!!!&lt;BR /&gt;Generated RSA Key Pair at KeyID = 0x00000400&lt;/P&gt;&lt;P&gt;c:\Projects\Se050_Middleware\SE-PLUG-TRUST-MW _v3_3_0\simw-top\binaries\PCWindows\ssscli&amp;gt;ssscli sign 0x400 in.txt out.txt&lt;BR /&gt;Opening COM Port 'COM4'&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 with UserID (But Plain).&lt;BR /&gt;sss :WARN :!!!Not recommended for production use.!!!&lt;BR /&gt;Signed from KeyID = 0x00000400 &amp;lt;--- successfull, but it should not be ?!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 17:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1350149#M594</guid>
      <dc:creator>Exocet</dc:creator>
      <dc:date>2021-10-04T17:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Object policy issue on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1358232#M602</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191996"&gt;@Exocet&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly have my comments as below:&lt;/P&gt;
&lt;P&gt;1. Is it possible to create an object(asymkey or binary file) with special policy for signing/encryption for example? How?&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;Yes, it is possible. Create a policy allowing for sign/encryption and then attach it to the object.&lt;/P&gt;
&lt;P&gt;2. How would a policy assigned to an object be different for multiple users ? Normal user canot delete an object, only the super user could delete the object.&lt;/P&gt;
&lt;P&gt;- By default&amp;nbsp;POLICY_OBJ_ALLOW_DELETE is always enabled, but any policy specified for some Auth ID would override the default policy, so if you create a policy without allowing delete and related to some specific Auth ID , for example, some UserID, then only users perform a successful UserID authentication can access&amp;amp;delete the objects attached with this policy.&lt;/P&gt;
&lt;P&gt;3. How to perform authentication to the Administrator and then as normal user ? For example "ssscli connect se05x vcom COM4 --auth_type UserID" seem generic and misleading.&lt;/P&gt;
&lt;P&gt;- The example establishes a UserID session , so you have to disconnect from this session at first, then connect again with auth_type None.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your example, the policy just specifies auth ID none, you may understand it is for normal user, while the session you built is based on UserID authentication, so it would not take effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes senses,&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, 20 Oct 2021 03:13:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1358232#M602</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-10-20T03:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Object policy issue on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1358607#M603</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/38145"&gt;@Kan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for yout time answering my questions.&lt;/P&gt;&lt;P&gt;The problem with the above ssscli commands was that RSA Sign and Verify end up using encrypt() and decrypt() methods. So even if you forbid sign and verify you will be able to perform such operations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same test for ECC key type works as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still I have 3 questions:&lt;/P&gt;&lt;P&gt;1. Given the example:&lt;/P&gt;&lt;P&gt;Step 1: Login with UserID 0x7AFFFFFF&lt;/P&gt;&lt;P&gt;Step 2: Create Object (0x100) with Policy&amp;nbsp;POLICY_OBJ_ALLOW_DELETE,&amp;nbsp;POLICY_OBJ_ALLOW_SIGN,&amp;nbsp;POLICY_OBJ_ALLOW_VERIFY&lt;/P&gt;&lt;P&gt;Step 3 : Relogin with auth_id None&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 4: Can I use object 0x100 to sign and verify but not delete the object ?&lt;/P&gt;&lt;P&gt;Please clarify how to implement this scenario.&lt;/P&gt;&lt;P&gt;2. How can we pass the UserID value when using the ssscli ? Like the below API call in which we provide the&amp;nbsp;kEX_SSS_ObjID_UserID_Auth parameter:&lt;/P&gt;&lt;P&gt;sw_status = Se05x_API_CreateSession(&amp;amp;pSession-&amp;gt;s_ctx, kEX_SSS_ObjID_UserID_Auth, userid1_value, &amp;amp;sess_len)&lt;/P&gt;&lt;P&gt;3. Is there a non invasive way to get the policy information for an object (in the current authenticated user context or even None) ?&lt;/P&gt;&lt;P&gt;For example, I don`t want to delete an object, to discover that it can be deleted.&lt;/P&gt;&lt;P&gt;I saw the Read_with_Attestation sample, but is there another simpler way besides creating another ECC key for the attested object? Can you post a sample with this feature.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;ssscli&amp;nbsp;policy&amp;nbsp;dump command only reads the policy from the local file, not from the SE.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 11:46:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1358607#M603</guid>
      <dc:creator>Exocet</dc:creator>
      <dc:date>2021-10-20T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Object policy issue on SE050</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1363034#M606</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191996"&gt;@Exocet&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the auth id for&amp;nbsp;&lt;SPAN&gt;Object (0x100)? If it is the UserID 0x7AFFFFFF, I don't think you can access this object in the default session.&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>Thu, 28 Oct 2021 07:03:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Object-policy-issue-on-SE050/m-p/1363034#M606</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-10-28T07:03:26Z</dc:date>
    </item>
  </channel>
</rss>

