<?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>Trying to set up secure channel with odsp fails because it can&amp;#39;t find the crypto device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116211/trying-to-set-up-secure-channel-with-odsp-fails-because-it-can-t-find-the-crypto-device</link><description>Hi! I am trying to get OSDP communication up and running on my nrf9160dk board. I am trying to run this sample: https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/mgmt/osdp/peripheral_device i have gone into the odsp Kconfig file and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Nov 2024 15:16:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116211/trying-to-set-up-secure-channel-with-odsp-fails-because-it-can-t-find-the-crypto-device" /><item><title>RE: Trying to set up secure channel with odsp fails because it can't find the crypto device</title><link>https://devzone.nordicsemi.com/thread/509943?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 15:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50932ed6-654a-486d-a54b-60561c5d43a1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. The CryptoCell driver&amp;nbsp;is not intended to be used direclty, and it not possible from a non-secure application, so this approach will not work. I suspect that the simplest is to modify the OSDP implementation to use the supported crypti API&amp;#39;s, and to be futureproof tahat means using the PSA APIs. You can see examples of those under&amp;nbsp;nrf/samples/crypto.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to set up secure channel with odsp fails because it can't find the crypto device</title><link>https://devzone.nordicsemi.com/thread/509691?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 14:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea68e54d-3a11-4739-875a-045eeae813a3</guid><dc:creator>mackz</dc:creator><description>&lt;p&gt;I am also able to build and run the sample, the problem is that i am trying to use the secure channel capabilites of OSDP but am getting errors during runtime because dev = device_get_binding(CONFIG_OSDP_CRYPTO_DRV_NAME); gives me an error. So what i am wondering is if it is possible to get the binding of the cc3xx crypto driver? This is what i found from zephyrs crypto sample: &lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifdef CONFIG_CRYPTO_TINYCRYPT_SHIM
#define CRYPTO_DRV_NAME CONFIG_CRYPTO_TINYCRYPT_SHIM_DRV_NAME
#elif CONFIG_CRYPTO_MBEDTLS_SHIM
#define CRYPTO_DRV_NAME CONFIG_CRYPTO_MBEDTLS_SHIM_DRV_NAME
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32_cryp)
#define CRYPTO_DEV_COMPAT st_stm32_cryp
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32_aes)
#define CRYPTO_DEV_COMPAT st_stm32_aes
#elif CONFIG_CRYPTO_NRF_ECB
#define CRYPTO_DEV_COMPAT nordic_nrf_ecb
#else
#error &amp;quot;You need to enable one crypto device&amp;quot;
#endif
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;but when i try to set CONFIG_CRYPTO_NRF_ECB i get :&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CRYPTO_NRF_ECB was assigned the value y, but got the value n. Missing dependencies:
DT_HAS_NORDIC_NRF_ECB_ENABLED&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to set up secure channel with odsp fails because it can't find the crypto device</title><link>https://devzone.nordicsemi.com/thread/509690?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 13:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3895601c-3ba0-409f-98ea-6a7b6faea69b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There will be additional issues that need resolution when you mix and match SDK versions, but for reference this mde the OSDP peripheral device sample build and run without issues (though I did not do additional testing):&lt;/p&gt;
&lt;p&gt;1. cmoose&amp;nbsp;osdp-uart, I did it in an app.overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,osdp-uart = &amp;amp;uart0;

	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For crypto, enable the needed crypto features like this in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_SECURITY=y
CONFIG_MBEDTLS_PSA_CRYPTO_C=y

CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=8192

CONFIG_PSA_WANT_GENERATE_RANDOM=y
CONFIG_PSA_WANT_KEY_TYPE_AES=y
CONFIG_PSA_WANT_ALG_CCM=y

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And lastly, remove&amp;nbsp;OSDP_SC_ENABLED as explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106532/configuration-conflicts-with-osdp-and-nrf-security/460107"&gt;this post&lt;/a&gt;&amp;nbsp;from the thread you linked to.&lt;/p&gt;
&lt;p&gt;PS:&amp;nbsp;OSDP support is part of Zephyr but not something we have worked with or support directly, and honestly does not know how to test it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>