<?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>How to enable OC_OSCORE in nrf_knx_iot sample?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112203/how-to-enable-oc_oscore-in-nrf_knx_iot-sample</link><description>I found that OSCORE could be enabled in nrf-knx-iot samples. 
 But how can I configure and enable OSCORE?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jul 2024 06:48:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112203/how-to-enable-oc_oscore-in-nrf_knx_iot-sample" /><item><title>RE: How to enable OC_OSCORE in nrf_knx_iot sample?</title><link>https://devzone.nordicsemi.com/thread/495928?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 06:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8efbcfbb-07ce-464b-8e73-04ea11ef0f66</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Barry,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Just let you know we are still working on this case, but we will need more time.&lt;/p&gt;
&lt;p&gt;Thanks for your patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable OC_OSCORE in nrf_knx_iot sample?</title><link>https://devzone.nordicsemi.com/thread/494679?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 01:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf96d48-4b7c-45a8-8b0a-3d2d17c7f9ac</guid><dc:creator>Llama12580</dc:creator><description>&lt;p&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable OC_OSCORE in nrf_knx_iot sample?</title><link>https://devzone.nordicsemi.com/thread/489614?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 02:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10173d9e-d8d1-4f1d-b568-af8e96feac7b</guid><dc:creator>Llama12580</dc:creator><description>&lt;p&gt;OK, thank you so much!! I will try what you said, which branch should I use?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable OC_OSCORE in nrf_knx_iot sample?</title><link>https://devzone.nordicsemi.com/thread/489594?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 20:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a3f9d6-289b-4930-a14d-b939c5001e31</guid><dc:creator>Konrad Derda</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;As Kenneth mentioned - currently, nRF KNX IoT Point API is in experimental phase. In the current state we did not test OSCORE functionality. The SDK is full of security features used by different protocols. At the moment, OSCORE is not enabled by default nd we cannot state that it&amp;#39;s fully functional. However, if you would like to test it itself I can show you how to enable it in our samples:&lt;/p&gt;
&lt;p&gt;1. Open CMakeLists.txt file of a sample you would like to use (or both), e.g.: knx/samples/light_switch_actuator/CMakeLists.txt&lt;/p&gt;
&lt;p&gt;2. Ensure that include directories contain ${BASE_DIR}/security entry like at the end of the following snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;include_directories(app PUBLIC
${BASE_DIR}
${BASE_DIR}/deps
${BASE_DIR}/include 
${BASE_DIR}/port/ 
${BASE_DIR}/port/zephyr
${BASE_DIR}/security
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. Add&amp;nbsp;OC_OSCORE to compile definitions:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;add_compile_definitions(OC_CLIENT OC_SERVER OC_PUBLISHER_TABLE OC_BLOCK_WISE OC_OSCORE)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4. Add the following files to the list of sources:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;${BASE_DIR}/security/oc_oscore_engine.c
${BASE_DIR}/security/oc_oscore_context.c
${BASE_DIR}/security/oc_oscore_crypto.c
${BASE_DIR}/messaging/coap/oscore.c
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After these editions you should be able to build the firmware with OSCORE enabled. Also, regarding the security - KNX Point API uses CoAP messages which are transported with Thread Protocol which itself uses encryption. It means that you are unable to decode packets captured in the air without knowing the Thread network&amp;#39;s key. OSCORE works on application layer and messages encrypted by it are later on encrypted by OpenThread during a transmission.&lt;br /&gt;&lt;br /&gt;Let me know if you need any help or information regarding this matter.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable OC_OSCORE in nrf_knx_iot sample?</title><link>https://devzone.nordicsemi.com/thread/489411?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 07:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:002f80ed-81a0-4312-817a-62cc67aaa97f</guid><dc:creator>Llama12580</dc:creator><description>&lt;p&gt;OK. Actually what I am concerned about is the securitry of communication betweens the knx sensor and the knx actuator. So for now,&amp;nbsp;&amp;nbsp;the nrf-knx-iot demo does not contain any&amp;nbsp;encryption algorithm?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable OC_OSCORE in nrf_knx_iot sample?</title><link>https://devzone.nordicsemi.com/thread/489384?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 20:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91916fc9-c7aa-455d-a170-2be9d21f2dd5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s still an experimental project. From my understanding this is something we are planning to eventually, but not looked into details yet, but I will check if someone can comment on what we believe is required to get started.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>