<?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>Wireless MCU中的主题 Re: ECDH_P256_GenerateKeys() invalid privateKey</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/ECDH-P256-GenerateKeys-invalid-privateKey/m-p/741704#M4173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ticket opened&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 11:50:45 GMT</pubDate>
    <dc:creator>nick002025</dc:creator>
    <dc:date>2018-04-05T11:50:45Z</dc:date>
    <item>
      <title>ECDH_P256_GenerateKeys() invalid privateKey</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ECDH-P256-GenerateKeys-invalid-privateKey/m-p/741702#M4171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue with the SecLib found in the 802.15.4 stack for the KW41Z. I am using the ECDH_P256_GenerateKeys function and my issue is that it is returning a populated public key but the private key is invalid. The raw 8bit values of the private key is all 0 expect the first byte which is 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SecLib is initialized through SecLib_Init and RNG is initialized through RNG_Init before calling the function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function returns&amp;nbsp;gSecSuccess_c&lt;/P&gt;&lt;P&gt;I did modify the SecLib&amp;nbsp;ECDH_P256_GenerateKeys function to use a static buffer for&amp;nbsp;pMultiplicationBuffer because the buffer size was too large for the MemManager default settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint8_t pMultiplicationBuffer[ gEcP256_MultiplicationBufferSize_c ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PublicKey.raw&lt;/P&gt;&lt;P&gt;raw[0] uint8_t 150 '\226' &lt;BR /&gt;raw[1] uint8_t 194 'Â' &lt;BR /&gt;raw[2] uint8_t 152 '\230' &lt;BR /&gt;raw[3] uint8_t 216 'Ø' &lt;BR /&gt;raw[4] uint8_t 69 'E' &lt;BR /&gt;raw[5] uint8_t 57 '9' &lt;BR /&gt;raw[6] uint8_t 161 '¡' &lt;BR /&gt;raw[7] uint8_t 244 'ô' &lt;BR /&gt;raw[8] uint8_t 160 '&amp;nbsp;' &lt;BR /&gt;raw[9] uint8_t 51 '3' &lt;BR /&gt;raw[10] uint8_t 235 'ë' &lt;BR /&gt;raw[11] uint8_t 45 '-' &lt;BR /&gt;raw[12] uint8_t 129 '\201' &lt;BR /&gt;raw[13] uint8_t 125 '}' &lt;BR /&gt;raw[14] uint8_t 3 '\003' &lt;BR /&gt;raw[15] uint8_t 119 'w' &lt;BR /&gt;raw[16] uint8_t 242 'ò' &lt;BR /&gt;raw[17] uint8_t 64 '@' &lt;BR /&gt;raw[18] uint8_t 164 '¤' &lt;BR /&gt;raw[19] uint8_t 99 'c' &lt;BR /&gt;raw[20] uint8_t 229 'å' &lt;BR /&gt;raw[21] uint8_t 230 'æ' &lt;BR /&gt;raw[22] uint8_t 188 '¼' &lt;BR /&gt;raw[23] uint8_t 248 'ø' &lt;BR /&gt;raw[24] uint8_t 71 'G' &lt;BR /&gt;raw[25] uint8_t 66 'B' &lt;BR /&gt;raw[26] uint8_t 44 ',' &lt;BR /&gt;raw[27] uint8_t 225 'á' &lt;BR /&gt;raw[28] uint8_t 242 'ò' &lt;BR /&gt;raw[29] uint8_t 209 'Ñ' &lt;BR /&gt;raw[30] uint8_t 23 '\027' &lt;BR /&gt;raw[31] uint8_t 107 'k' &lt;BR /&gt;raw[32] uint8_t 245 'õ' &lt;BR /&gt;raw[33] uint8_t 81 'Q' &lt;BR /&gt;raw[34] uint8_t 191 '¿' &lt;BR /&gt;raw[35] uint8_t 55 '7' &lt;BR /&gt;raw[36] uint8_t 104 'h' &lt;BR /&gt;raw[37] uint8_t 64 '@' &lt;BR /&gt;raw[38] uint8_t 182 '¶' &lt;BR /&gt;raw[39] uint8_t 203 'Ë' &lt;BR /&gt;raw[40] uint8_t 206 'Î' &lt;BR /&gt;raw[41] uint8_t 94 '^' &lt;BR /&gt;raw[42] uint8_t 49 '1' &lt;BR /&gt;raw[43] uint8_t 107 'k' &lt;BR /&gt;raw[44] uint8_t 87 'W' &lt;BR /&gt;raw[45] uint8_t 51 '3' &lt;BR /&gt;raw[46] uint8_t 206 'Î' &lt;BR /&gt;raw[47] uint8_t 43 '+' &lt;BR /&gt;raw[48] uint8_t 22 '\026' &lt;BR /&gt;raw[49] uint8_t 158 '\236' &lt;BR /&gt;raw[50] uint8_t 15 '\017' &lt;BR /&gt;raw[51] uint8_t 124 '|' &lt;BR /&gt;raw[52] uint8_t 74 'J' &lt;BR /&gt;raw[53] uint8_t 235 'ë' &lt;BR /&gt;raw[54] uint8_t 231 'ç' &lt;BR /&gt;raw[55] uint8_t 142 '\216' &lt;BR /&gt;raw[56] uint8_t 155 '\233' &lt;BR /&gt;raw[57] uint8_t 127 '\177' &lt;BR /&gt;raw[58] uint8_t 26 '\032' &lt;BR /&gt;raw[59] uint8_t 254 'þ' &lt;BR /&gt;raw[60] uint8_t 226 'â' &lt;BR /&gt;raw[61] uint8_t 66 'B' &lt;BR /&gt;raw[62] uint8_t 227 'ã' &lt;BR /&gt;raw[63] uint8_t 79 'O' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;privateKey&lt;/P&gt;&lt;P&gt;raw_8bit[0] uint8_t 1 '\001' &lt;BR /&gt;raw_8bit[1] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[2] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[3] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[4] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[5] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[6] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[7] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[8] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[9] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[10] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[11] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[12] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[13] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[14] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[15] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[16] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[17] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[18] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[19] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[20] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[21] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[22] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[23] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[24] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[25] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[26] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[27] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[28] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[29] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[30] uint8_t 0 '\0' &lt;BR /&gt;raw_8bit[31] uint8_t 0 '\0' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 15:36:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ECDH-P256-GenerateKeys-invalid-privateKey/m-p/741702#M4171</guid>
      <dc:creator>nick002025</dc:creator>
      <dc:date>2018-03-27T15:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: ECDH_P256_GenerateKeys() invalid privateKey</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ECDH-P256-GenerateKeys-invalid-privateKey/m-p/741703#M4172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share&amp;nbsp;with me the exact changes you made to the function and some more details so I can try to recreate it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, could you please provide that information through an internal case?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 19:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ECDH-P256-GenerateKeys-invalid-privateKey/m-p/741703#M4172</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2018-04-04T19:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: ECDH_P256_GenerateKeys() invalid privateKey</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/ECDH-P256-GenerateKeys-invalid-privateKey/m-p/741704#M4173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ticket opened&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 11:50:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/ECDH-P256-GenerateKeys-invalid-privateKey/m-p/741704#M4173</guid>
      <dc:creator>nick002025</dc:creator>
      <dc:date>2018-04-05T11:50:45Z</dc:date>
    </item>
  </channel>
</rss>

