<?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>ECDSA with self defined key</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75225/ecdsa-with-self-defined-key</link><description>Hi all, 
 I am working on a ble5 beacon with ecdsa signature. I would like to use mobile to verify my message. As I see that the crypto ecdsa example use raw key and generate the ecdsa key again, I would like to know is there any way to use the key that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 May 2021 09:14:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75225/ecdsa-with-self-defined-key" /><item><title>RE: ECDSA with self defined key</title><link>https://devzone.nordicsemi.com/thread/310355?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 09:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e61c5b-98b3-45b0-bbb7-ecc92829ffe3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;MLai,&lt;/p&gt;
&lt;p&gt;The raw key which is used in the nrf_crypto APIs is raw hex, not base 64 format. (There are no nrf_crypto API&amp;#39;s that wark on base 64.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ECDSA with self defined key</title><link>https://devzone.nordicsemi.com/thread/310259?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 18:38:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65d537cb-3904-4590-9b12-1f094a5972e3</guid><dc:creator>MLai</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I am now testing on the key generated from both openssl and nrfutil, but I am facing the problem in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75260/ecdsa-with-nrfutil-generated-key"&gt;this thread&lt;/a&gt;. And I am a little bit confuse that the hash generated is in what format, is it (r|s) or in other format, as I see normally the hash are in base 64 format which should more than 64 bytes. Thanks a lot.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;MLai&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ECDSA with self defined key</title><link>https://devzone.nordicsemi.com/thread/310157?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 12:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f80b0368-f954-40a9-8dc7-846e1d42d55d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;MLai,&lt;/p&gt;
&lt;p&gt;The nrf_crypto library can only import and export raw keys, and not certificates (like .pem files). So you can use the private key you have allready generated, but you need to export it to raw using some tool of your choice, and then import it to nrf_crypto using&amp;nbsp;&lt;code&gt;nrf_crypto_ecc_private_key_from_raw()&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>