<?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 SE050: ECDH - Se05x_API_ECGenSharedSecret in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/SE050-ECDH-Se05x-API-ECGenSharedSecret/m-p/1093908#M329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am calling this API from my context session (SCP03 encrypted), using a valid object id that identifies a valid EC key that exists in persistent memory and passing the public key and length&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se05x_API_ECGenSharedSecret(&amp;amp;session-&amp;gt;s_ctx, kid, key, key_len, secret, len);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The kid is a valid object id.&lt;/P&gt;&lt;P&gt;secret: is a valid pointer to a buffer of 512 bytes&lt;/P&gt;&lt;P&gt;secret_len: is a valid pointer pointing to the number 512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key:&lt;/P&gt;&lt;P&gt;I/TC: public key : 32 bytes, x=32, y=32 &lt;/P&gt;&lt;P&gt;I/TC: se050: ecc: : public x: &lt;BR /&gt;I/TC: se050: ecc: : 04.bf.cd.44.48.a7.e6.d9 36.3f.84.e8.c6.39.32.df &lt;BR /&gt;I/TC: se050: ecc: : f6.12.f0.85.21.b4.b6.e5 4d.ad.46.7a.d4.c1.bf.6c &lt;/P&gt;&lt;P&gt;I/TC: se050: ecc: : public y: &lt;BR /&gt;I/TC: se050: ecc: : 34.b9.56.6b.99.17.32.b3 f9.0b.bf.7c.a5.75.a3.61 &lt;BR /&gt;I/TC: se050: ecc: : 38.9d.d0.f9.b3.26.a9.93 13.18.a8.11.d8.30.e8.7b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key array is formed as:&amp;nbsp;0x04 + public_x + public_y&lt;/P&gt;&lt;P&gt;With the length = 1 + 32 + 32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The curve id of the kid is kSE05x_ECCurve_NIST_P256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The response I get from the SE050 to this APDU request is&amp;nbsp;0x6985&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the kid - object with the private key - is valid, is there anything in the formatting of the public key that could be causing this call to fail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2020 08:14:36 GMT</pubDate>
    <dc:creator>jorge_ramirez</dc:creator>
    <dc:date>2020-06-26T08:14:36Z</dc:date>
    <item>
      <title>SE050: ECDH - Se05x_API_ECGenSharedSecret</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-ECDH-Se05x-API-ECGenSharedSecret/m-p/1093908#M329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am calling this API from my context session (SCP03 encrypted), using a valid object id that identifies a valid EC key that exists in persistent memory and passing the public key and length&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se05x_API_ECGenSharedSecret(&amp;amp;session-&amp;gt;s_ctx, kid, key, key_len, secret, len);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The kid is a valid object id.&lt;/P&gt;&lt;P&gt;secret: is a valid pointer to a buffer of 512 bytes&lt;/P&gt;&lt;P&gt;secret_len: is a valid pointer pointing to the number 512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key:&lt;/P&gt;&lt;P&gt;I/TC: public key : 32 bytes, x=32, y=32 &lt;/P&gt;&lt;P&gt;I/TC: se050: ecc: : public x: &lt;BR /&gt;I/TC: se050: ecc: : 04.bf.cd.44.48.a7.e6.d9 36.3f.84.e8.c6.39.32.df &lt;BR /&gt;I/TC: se050: ecc: : f6.12.f0.85.21.b4.b6.e5 4d.ad.46.7a.d4.c1.bf.6c &lt;/P&gt;&lt;P&gt;I/TC: se050: ecc: : public y: &lt;BR /&gt;I/TC: se050: ecc: : 34.b9.56.6b.99.17.32.b3 f9.0b.bf.7c.a5.75.a3.61 &lt;BR /&gt;I/TC: se050: ecc: : 38.9d.d0.f9.b3.26.a9.93 13.18.a8.11.d8.30.e8.7b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key array is formed as:&amp;nbsp;0x04 + public_x + public_y&lt;/P&gt;&lt;P&gt;With the length = 1 + 32 + 32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The curve id of the kid is kSE05x_ECCurve_NIST_P256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The response I get from the SE050 to this APDU request is&amp;nbsp;0x6985&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the kid - object with the private key - is valid, is there anything in the formatting of the public key that could be causing this call to fail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 08:14:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-ECDH-Se05x-API-ECGenSharedSecret/m-p/1093908#M329</guid>
      <dc:creator>jorge_ramirez</dc:creator>
      <dc:date>2020-06-26T08:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: SE050: ECDH - Se05x_API_ECGenSharedSecret</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-ECDH-Se05x-API-ECGenSharedSecret/m-p/1093909#M330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please close this case. the public key being used to get the secret had an incorrect byte in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and sorry about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 07:34:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-ECDH-Se05x-API-ECGenSharedSecret/m-p/1093909#M330</guid>
      <dc:creator>jorge_ramirez</dc:creator>
      <dc:date>2020-06-29T07:34:38Z</dc:date>
    </item>
  </channel>
</rss>

