<?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>Crypto Verification Failing Intermittently</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54925/crypto-verification-failing-intermittently</link><description>Hi, 
 I have an application that verifies a chunk of data and EdDSA Ed25519 signature against a remote public key. 
 
 The device application generates a random number, sends it to a PC over USB. The number is sent to a server and the response is then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Nov 2019 15:46:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54925/crypto-verification-failing-intermittently" /><item><title>RE: Crypto Verification Failing Intermittently</title><link>https://devzone.nordicsemi.com/thread/222431?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 15:46:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6e034c3-b01c-4db5-84f0-bff8c8973701</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see,&lt;/p&gt;
&lt;p&gt;Do you see the same if you switch to the Oberon backend (changing backend in sdk_config.h)? It would be useful to narrow down the problem. Any other obvious difference when it fails and not? Does the size of the data matter or something else? Does the same input data and signature fail always, or does it only fail sometimes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crypto Verification Failing Intermittently</title><link>https://devzone.nordicsemi.com/thread/222390?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 14:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37dc2cbf-fd16-44f9-a81b-7cbbf2ec211b</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Hi Einar&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I did check this and they are correct&lt;/li&gt;
&lt;li&gt;We are only using the CC310 backend&lt;/li&gt;
&lt;li&gt;SDK 15.2.0, S140 v6.0.0&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crypto Verification Failing Intermittently</title><link>https://devzone.nordicsemi.com/thread/222352?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 12:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:951b384e-1baf-461e-9acf-a264fbc075d2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The return value indicates a signature verification failure, so I would not expect you to get this if you have verified that the data and signature is correct&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Could there be a buffer corruption issue of some sort? Can you try to verify that the input buffers (holding the data and signature) are valid after you check the signature as well to check that?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Do you get the same retult using both the Oberon and CC310 backend, or only using one of the backends?&lt;/li&gt;
&lt;li&gt;Also, which SDK are you using?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>