<?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: SE050 APDU - ECDSA</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/SE050-APDU-ECDSA/m-p/1060341#M276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you - the plug and trust examples are great&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2020 19:04:03 GMT</pubDate>
    <dc:creator>julian_sauer</dc:creator>
    <dc:date>2020-04-13T19:04:03Z</dc:date>
    <item>
      <title>SE050 APDU - ECDSA</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-APDU-ECDSA/m-p/1060339#M274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying get the Public Key (&lt;STRONG&gt;&lt;EM&gt;FastSCPGetECKAPublicKey&lt;/EM&gt;&lt;/STRONG&gt;) from the SE050 Dev Board and proofing the private Key possession with a ECDSA Signature from this Public Key (&lt;STRONG&gt;&lt;EM&gt;FastSCPGetECKAPublicKey&lt;/EM&gt;&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to create a CryptoObject (in the Docu it is mentioned the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;FastSCPGetECKAPublicKey&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;already created)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I find good example project only using APDU Commands (Soft Reset, Select Applet etc.) to communicate with the SE050?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is "creating a Session" necessary for retrieving the public Key and Signing a Random Message or can this happen sessionless?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2020 20:42:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-APDU-ECDSA/m-p/1060339#M274</guid>
      <dc:creator>julian_sauer</dc:creator>
      <dc:date>2020-04-05T20:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 APDU - ECDSA</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-APDU-ECDSA/m-p/1060340#M275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Julian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creating a session with the command&amp;nbsp;&lt;EM&gt;CreateSession&amp;nbsp;&lt;/EM&gt;is not necessary to do a signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the command&amp;nbsp;&lt;EM&gt;FastSCPGetECKAPublicKey&lt;/EM&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt; &lt;/STRONG&gt;(now called &lt;EM&gt;ECKeySessionGetECKAPublicKey&lt;/EM&gt;)&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;is only used to fetch the public key when needed for session creation with Elliptic Curve authentication or for&amp;nbsp;&lt;EM&gt;ImportExternalObject&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mechanism of encrypted session creation is best shown when compiling the examples with authentication enabled - so call cmake with&amp;nbsp;&lt;SPAN style="color: #c7254e; background-color: #f9f2f4; font-weight: bold;"&gt;-DSE05X_Auth=ECKey&amp;nbsp;&lt;/SPAN&gt;and the examples will execute with authentication. Prerequisite is that&amp;nbsp;the example authentication keys have been provisioned before using the example se05x_Delete_and_test_provision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you are not interested in the ECKey authentication but just like to do a signature then I recommend the example ex_ecc of the Plug &amp;amp; Trust Middleware.&lt;/P&gt;&lt;P&gt;It shows creating a signature using&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;sss_asymmetric_sign_digest(&amp;amp;ctx_asymm, digest, digestLen, signature, &amp;amp;signatureLen);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Reading the public key works as shown in ex_ecdh works using&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;sss_key_store_get_key(&amp;amp;pCtx-&amp;gt;ks, &amp;amp;keyPair, publicKey, &amp;amp;publicKeyLen, &amp;amp;publicKeyBitLen);&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To see the APDUs created by these functions just enable debug logging in nxLog_Default_Config.h with&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;#define NX_LOG_ENABLE_DEFAULT_DEBUG 1&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and execute the examples to see which APDUs are exchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:08:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-APDU-ECDSA/m-p/1060340#M275</guid>
      <dc:creator>michaelsalfer</dc:creator>
      <dc:date>2020-04-09T18:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 APDU - ECDSA</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-APDU-ECDSA/m-p/1060341#M276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you - the plug and trust examples are great&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 19:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-APDU-ECDSA/m-p/1060341#M276</guid>
      <dc:creator>julian_sauer</dc:creator>
      <dc:date>2020-04-13T19:04:03Z</dc:date>
    </item>
  </channel>
</rss>

