<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unable to get ECDH Shared Secret</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79200/unable-to-get-ecdh-shared-secret</link><description>Hi 
 We are using nrf mesh Android code from GitHub and trying to get shared secret during the Provisioning Public Key PDU Process. 
 We are getting following error -(We are using the code as it is) 
 java.security.spec.InvalidKeySpecException: Must use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Sep 2021 09:56:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79200/unable-to-get-ecdh-shared-secret" /><item><title>RE: Unable to get ECDH Shared Secret</title><link>https://devzone.nordicsemi.com/thread/327938?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 09:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90547cb4-cd8f-4661-a006-5ccad43bd80d</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you test using our &lt;a href="https://play.google.com/store/apps/details?id=no.nordicsemi.android.nrfmeshprovisioner&amp;amp;hl=no&amp;amp;gl=US" rel="noopener noreferrer" target="_blank"&gt;nRF Mesh app&lt;/a&gt; from from the Google Play store? Do you see the issue there as well?&lt;/p&gt;
&lt;p&gt;The library should handle all of this when you start provisioning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to get ECDH Shared Secret</title><link>https://devzone.nordicsemi.com/thread/327824?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 13:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd3b1c6b-b318-4e08-8af0-3f92368dcd91</guid><dc:creator>Vithika</dc:creator><description>&lt;p&gt;Yes we are referring same ,but&amp;nbsp; we are getting the error. We are unable to get shared secret nor generate pairs using this code.&lt;/p&gt;
&lt;p&gt;We are getting the error as above&amp;nbsp;&lt;span&gt;java.security.spec.InvalidKeySpecException: Must use ECPublicKeySpec or X509EncodedKeySpec; was org.spongycastle.jce.spec.ECPublicKeySpec&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to get ECDH Shared Secret</title><link>https://devzone.nordicsemi.com/thread/327821?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 13:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:938e6452-9de5-4439-9e96-d02ebd0e8cd5</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the latest version of &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/tree/v3.1.6" rel="noopener noreferrer" target="_blank"&gt;Android-nRF-Mesh-Library&lt;/a&gt;(3.16) from our Github?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>