<?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>ChaCha-Poly encryption test function problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62598/chacha-poly-encryption-test-function-problem</link><description>I have an issue with attempting to test an encryption on a sample data made in that function and then called in int main(void). What happens is that during the debug the CRYS_CHACHA_POLY function was being called because I did put a breakpoint there.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jul 2020 13:24:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62598/chacha-poly-encryption-test-function-problem" /><item><title>RE: ChaCha-Poly encryption test function problem</title><link>https://devzone.nordicsemi.com/thread/261996?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 13:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f476ba-7459-408e-aa08-0328a239f575</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Ilias,&lt;/p&gt;
&lt;p&gt;Did you solve this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ChaCha-Poly encryption test function problem</title><link>https://devzone.nordicsemi.com/thread/255271?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 13:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b0e41ce-95f6-4b41-a784-44c65039208f</guid><dc:creator>unkn0wnerr0r</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;The issue is actually the second part of my question - when I run the program just as usual, not in debug mode, it doesn&amp;#39;t output encrypted text, as I called it after nrf_crypto_aead_crypt, and I&amp;#39;m struggling to find the reason why, Except for some changes, I used the example from SDK. That&amp;#39;s why I thought something hangs during&amp;nbsp;&lt;span&gt;nrf_crypto_aead_crypt. And I&amp;#39;m not entirely sure why that happens.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ilias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ChaCha-Poly encryption test function problem</title><link>https://devzone.nordicsemi.com/thread/255256?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 12:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:695acc8c-f680-41dd-bfd0-e9adb833be61</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The reason for the SoftDevice assert is that the SoftDevice has internal checks for ensuring that timing constraints are not violated. When you pause code execution (such as pausing at breakpoints or while stepping through the code) there will be violation of timing constraints - leading to SoftDevice assert. Note that code executes as normal up until the first time you pause execution, so you can still use a breakpoint to check that code execution follows a given path. It is possible to run the high priority SoftDevice routines in the background while debugging lower-level code, using &lt;a href="https://github.com/NordicPlayground/j-link-monitoring-mode-debugging"&gt;Monitor Mode Debugging&lt;/a&gt;, but as this may be a bit complex to set up and get running you may want to rely on other debug techniques instead.&lt;/p&gt;
&lt;p&gt;From your descriptions it sounds like there is a separate issue happening (which is the reason why you run the debug session in the first place.) If so, what is the nature of this other issue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>