<?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>Problems in Using nrf crypto hash function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42030/problems-in-using-nrf-crypto-hash-function</link><description>Hello all. I have been having issues using the hash functionality of the nrf crypto library. 
 
 
 Above is the screenshot of the output I am getting for the code shown below: 
 
 
 
 
 
 What I am confused about is two things: it seems that the error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jan 2019 15:10:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42030/problems-in-using-nrf-crypto-hash-function" /><item><title>RE: Problems in Using nrf crypto hash function</title><link>https://devzone.nordicsemi.com/thread/164328?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 15:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0562fb4c-74a3-40ff-b322-b02bf01d175f</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;This error means that data you are using is located in Flash hence it cannot be proceed. Just copy your data to RAM (global or static variable) and next process it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems in Using nrf crypto hash function</title><link>https://devzone.nordicsemi.com/thread/164321?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 15:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d600ee77-d03a-4bf4-8cb5-3336ed0aa92e</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi the error you are getting is 34066 (0x8512) (from the screenshot, not 30466 as you write in the post)&lt;/p&gt;
&lt;p&gt;You can find the error code here: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__crypto__error.html?cp=4_0_1_6_11_11_4_17#ga0a7c72c730c684c24c6f3fe7caf518d2"&gt;NRF_ERROR_CRYPTO_INPUT_LOCATION &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Input data not in RAM&amp;quot;. So most likely you are passing a pointer to a locally defined variable. You need to make the variable static, or use memset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems in Using nrf crypto hash function</title><link>https://devzone.nordicsemi.com/thread/163287?ContentTypeID=1</link><pubDate>Sun, 30 Dec 2018 22:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:634561bf-f8ae-4c7a-a8e0-2c4e8eefc2d2</guid><dc:creator>peurpdapeurp</dc:creator><description>&lt;p&gt;Just as an update, it seems that even when I include the function that I thought worked (sign_on_basic_nrf_crypto_gen_sha256_hash) and try to call it within the file where nrf_crypto_hash_calculate was failing, the function also fails there, so I guess where nrf_crypto_hash_calculate is called from has an effect on whether or not it will succeed or fail?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>