<?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>nrfutil generate different public key from openSSL</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21112/nrfutil-generate-different-public-key-from-openssl</link><description>Hi there, 
 I&amp;#39;m trying to use nrfutil generate package with an extern key pair generated with openSSL.
I used opneSLL with prime256v1 curve, which correspond to secp256r1 curve, and got an private key in PEM format, same format that nrfutil gives. But</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Apr 2017 13:09:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21112/nrfutil-generate-different-public-key-from-openssl" /><item><title>RE: nrfutil generate different public key from openSSL</title><link>https://devzone.nordicsemi.com/thread/82591?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 13:09:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5e69489-dadf-4023-a08b-62aec5c20557</guid><dc:creator>Luccas</dc:creator><description>&lt;p&gt;Ok. I&amp;#39;m trying to find a way to do that. If I discover something I&amp;#39;ll post here.
Thanks for the answers!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate different public key from openSSL</title><link>https://devzone.nordicsemi.com/thread/82590?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 12:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca0baa9-9385-45e0-a72d-11eab68e05bc</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@Luccas: No, not as far as I know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate different public key from openSSL</title><link>https://devzone.nordicsemi.com/thread/82589?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 11:47:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b5ec86-e12e-4697-8090-12f89f1a43b9</guid><dc:creator>Luccas</dc:creator><description>&lt;p&gt;Oh, thanks for the explanation! I notice that on private key. But now, is there any way to sign a package using nrfutil in big endian?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate different public key from openSSL</title><link>https://devzone.nordicsemi.com/thread/82588?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 06:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3229d4e7-2c6a-46d2-855c-3daeace0c819</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;OpenSSL will always display and use keys in big endian byte order, while uECC uses little endian on NRF5x. So a key &lt;code&gt;0x1 0x2 ... 0x31 0x32&lt;/code&gt; becomes &lt;code&gt;0x32 0x31 .. 0x02 0x01&lt;/code&gt; in uECC.&lt;/p&gt;
&lt;p&gt;Workaround: Just swap the key bytes around. Note that compressed (33 byte) public keys are special: You need to exclude the first byte IIRC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>