<?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>Problem in adding cypto-graphic function to project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39792/problem-in-adding-cypto-graphic-function-to-project</link><description>Hi to all, i am developing an app with nrf52840 and i want to use cc310 backend to generate ecc public/private key pair. after adding some files and enabling cc310 backend and yring to use nrf_crypto_ecc_key_pair_generate func to create key pair, the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2019 23:26:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39792/problem-in-adding-cypto-graphic-function-to-project" /><item><title>RE: Problem in adding cypto-graphic function to project</title><link>https://devzone.nordicsemi.com/thread/218377?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 23:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9b25907-3737-471f-9124-6964c31249dc</guid><dc:creator>cyakimov</dc:creator><description>&lt;p&gt;Hey, I just wanted to share that I stumbled with this problem too and the suggested solution didn&amp;#39;t work for me.&lt;/p&gt;
&lt;p&gt;In addition to enabling&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__crypto__config.html#ga4bd4ea9184f9b91a47426285deac847e"&gt;NRF_CRYPTO_ENABLED&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__crypto__config.html#ga3e88b4f33318ff61e6449135cf468d2a"&gt;&lt;span&gt;NRF_CRYPTO_BACKEND_CC310_ENABLED&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__crypto__config.html#gadb2659fd35e42a6654611309558bb733"&gt;NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I also had to enable the following macros in sdk_config.h&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__crypto__rng__config.html#gab4d4443c8ec6dfd167dc41661ae66378"&gt;NRF_CRYPTO_RNG_AUTO_INIT_ENABLED&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__crypto__rng__config.html#gaf4feb4aca56be9170ad6003ce49e3342"&gt;NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As it&amp;#39;s described in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fgroup__nrf__crypto__rng.html"&gt;RNG Configuration&lt;/a&gt;&amp;nbsp;section.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem in adding cypto-graphic function to project</title><link>https://devzone.nordicsemi.com/thread/174800?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 12:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32d7e150-218f-4aa5-b6b7-2a79ffa00750</guid><dc:creator>Siddharth rana</dc:creator><description>&lt;p&gt;I get&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Undefined reference to &amp;quot; CRYS_Rndinit&amp;quot;&amp;nbsp; error.&lt;/p&gt;
&lt;p&gt;All the error related to ,&lt;/p&gt;
&lt;p&gt;Cc310_backned_rng.o,init.o ,ecc.o files&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem in adding cypto-graphic function to project</title><link>https://devzone.nordicsemi.com/thread/174798?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 12:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b93bdf8-cf8b-4bdf-9fbb-03fe2132aa44</guid><dc:creator>Siddharth rana</dc:creator><description>&lt;p&gt;I have been going through the same problem as above.&lt;/p&gt;
&lt;p&gt;I have also enabled all config in sdk_config.h file .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem in adding cypto-graphic function to project</title><link>https://devzone.nordicsemi.com/thread/154807?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 08:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c16cd696-d599-4a76-90a6-b19abd09e8f2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_crypto_rng.html?cp=4_0_0_3_11_15_10_0#lib_crypto_rng_backend"&gt;set config&lt;/a&gt;&amp;nbsp;to enable HW RNG in the CC310?&amp;nbsp;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th colspan="1" rowspan="1"&gt;Backend&lt;/th&gt;
&lt;th colspan="1" rowspan="1"&gt;Enabled define&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;CC310&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__crypto__config.html#gadb2659fd35e42a6654611309558bb733"&gt;NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;nRF HW RNG&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__crypto__config.html#gac8b20a4a722b61ad8a5a2333af795c2c"&gt;NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem in adding cypto-graphic function to project</title><link>https://devzone.nordicsemi.com/thread/154777?ContentTypeID=1</link><pubDate>Sun, 28 Oct 2018 08:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd741a3a-07e5-4414-b7d8-865b213140a8</guid><dc:creator>alireza11048</dc:creator><description>&lt;p&gt;Thanks for your response, now i am able to compile the project and calling the function&amp;nbsp;nrf_crypto_ecc_key_pair_generate. but still i am not able to create key pairs. when i call the&amp;nbsp;nrf_crypto_ecc_key_pair_generate function it return 0x00008502 error code. i had enabled NRF_CRYPTO and NRF_CRYPTO_CC310_ENABLED macros int the sdk_config.h and also memory allocator had set to default in the sdk_config. when i debug the app, i saw that&amp;nbsp;&lt;span&gt;nrf_crypto_ecc_key_pair_generate function itself invoke&amp;nbsp;CRYS_ECPKI_GenKeyPair function and this function return&amp;nbsp;CRYS_RND_INSTANTIATION_NOT_DONE_ERROR. do you know how can i sove this problem??&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem in adding cypto-graphic function to project</title><link>https://devzone.nordicsemi.com/thread/154327?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 15:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68558183-af1a-4ea1-9271-caa4937e21cc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The functions are defined in the file&amp;nbsp;nRF5_SDK_15.2.0_9412b96\components\libraries\crypto\backend\cc310\cc310_backend_ecc.c.&lt;/p&gt;
&lt;p&gt;Note that you need to enable the following configs in sdk_config.h for the functions to be compiled in:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__crypto__config.html#ga4bd4ea9184f9b91a47426285deac847e"&gt;NRF_CRYPTO_ENABLED&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__crypto__config.html#ga3e88b4f33318ff61e6449135cf468d2a"&gt;&lt;span&gt;NRF_CRYPTO_BACKEND_CC310_ENABLED&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>