<?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 nrfutil generated key</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75260/ecdsa-with-nrfutil-generated-key</link><description>Hi all, 
 I am now testing with ecdsa example with nrfutil generated key. I found that the public key generated by nrf_crypto_ecc_public_key_from_raw is not the same format as the original code. The original one is 
 
 and the one that I use my own key</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 May 2021 09:28:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75260/ecdsa-with-nrfutil-generated-key" /><item><title>RE: ECDSA with nrfutil generated key</title><link>https://devzone.nordicsemi.com/thread/311379?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 09:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab70a84-bd71-4938-b953-a9708543f3bd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The returned signature contains both the r and s component. First half is the r (byte 0 - 31), and the second half is the s (byte 32 - 63). Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ECDSA with nrfutil generated key</title><link>https://devzone.nordicsemi.com/thread/311211?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 06:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:184a0310-0d7f-4efc-9180-6f33ba17748b</guid><dc:creator>MLai</dc:creator><description>&lt;p&gt;Thx for your reply, I can use the key generated from openssl now. But now I am trying to change the p1363 format of my signature to ASN1 format. I would like to know is there any way to do this in sdk 15.2. The function I am using now needs to state what is r and s, can I have any information when I generated the signature from nrf_crypto_ecdsa_sign, I look into the function and found that backend_implementation return the whole signature.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ECDSA with nrfutil generated key</title><link>https://devzone.nordicsemi.com/thread/310445?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 12:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4b021d6-329d-4edf-b3f9-4cc2533ebd5e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi MLai,&lt;/p&gt;
&lt;p&gt;I think the discrepancy may be explained by different endianesses. openssl use big-endian while nrfutil use little endian. If you look at the bootloader implementation, you can see that we use nrf_crypto_internal_double_swap_endian() to changes the endianess prior to calling the nrf_crypto_ecc_public_key_from_raw() function.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1621428096542v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>