<?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>SECP256R1 curve Encryption throws internal error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104601/secp256r1-curve-encryption-throws-internal-error</link><description>Hi, 
 
 We were using SECP256K1 curves to build public keys on a custom project without issues, but when switching to the SECP256R1 curve, we&amp;#39;re getting an internal error. 
 Specifically we&amp;#39;re getting a CRYS_ERROR of 0xF00830 when calling `CRYS_ECPKI_BuildPublKey</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Oct 2023 11:27:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104601/secp256r1-curve-encryption-throws-internal-error" /><item><title>RE: SECP256R1 curve Encryption throws internal error</title><link>https://devzone.nordicsemi.com/thread/450269?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 11:27:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b072b156-d4fd-4d8e-aaad-678a1ed72054</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;I edited my earlier reply as the link I sent for public key will not be accessible for you. Sorry for this unwanted mistake.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SECP256R1 curve Encryption throws internal error</title><link>https://devzone.nordicsemi.com/thread/450224?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 08:11:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfd86c27-a352-4969-83fb-5695c3305e6c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;Hello Ryan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;I have feedback from respective team.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;Secp256r1 should work. Maybe your public key is not correct or&amp;nbsp;that the endianness or form of the public key is wrong.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;To check if your key is wrong, you can try the following public key that we are using for testing ECDSA with secp256r1, and see if that work:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt;04e424dc61d4bb3cb7ef4344a7f8957a0c5134e16f7a67c074f82e6e12f49abf3c970eed7aa2bc48651545949de1dddaf0127e5965ac85d1243d6f60e7dfaee927&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;or you can look for key (from NIST CAVP) here&amp;nbsp;&lt;a href="https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Digital-Signatures#ecdsa2vs"&gt;https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Digital-Signatures#ecdsa2vs&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SECP256R1 curve Encryption throws internal error</title><link>https://devzone.nordicsemi.com/thread/450189?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 05:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07f8a425-8ea5-4148-b008-898eb7ebbf0a</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have asked our team. I will get back to you shortly.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>