<?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>Is there a way to access/print the Long Term Key (LTK) to help with sniffer capture?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109985/is-there-a-way-to-access-print-the-long-term-key-ltk-to-help-with-sniffer-capture</link><description>I&amp;#39;m using a Frontline Sodera (a wideband sniffer) to try to analyze LE Audio traffic, but it&amp;#39;s not able to decrypt the traffic, so I&amp;#39;d like to pass it the LTK to enable decryption. 
 I did see some previous questions, from 2 or more years ago, that referenced</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Apr 2024 19:20:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109985/is-there-a-way-to-access-print-the-long-term-key-ltk-to-help-with-sniffer-capture" /><item><title>RE: Is there a way to access/print the Long Term Key (LTK) to help with sniffer capture?</title><link>https://devzone.nordicsemi.com/thread/477660?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 19:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9bcf701-80e0-4b6a-bf82-06da3b3a1cda</guid><dc:creator>JeremyM</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;The following text is probably more for myself and other readers new to Kconfig settings, but I had some trouble figuring out where to make this change. After some trial and error, I think the place to make it is in \v2.6.0\nrf\applications\nrf5340_audioprj.conf .&lt;/p&gt;
&lt;p&gt;Initially I tried changing line 998 in \v2.6.0\zephyr\subsys\bluetooth\host\Konfig to add =y, but that causes a build error.&lt;/p&gt;
&lt;p&gt;I tried adding it early in the \v2.6.0\nrf\applications\nrf5340_audio\Kconfig and that shows more pairing information, but not the LTKs.&lt;/p&gt;
&lt;p&gt;After adding the line to \v2.6.0\nrf\applications\nrf5340_audioprj.conf (near the start of the file, but not on a #comment line), I do see the LTK, the line looks something like&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;GW [00:00:02.015,869] &amp;lt;inf&amp;gt; bt_keys: SC LTK: 0x...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to access/print the Long Term Key (LTK) to help with sniffer capture?</title><link>https://devzone.nordicsemi.com/thread/477417?ContentTypeID=1</link><pubDate>Sun, 07 Apr 2024 08:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e085a79-ca2c-45e7-b4f0-dcbeda372fee</guid><dc:creator>ivan iushkov</dc:creator><description>&lt;p&gt;KConfig option&lt;/p&gt;
&lt;p&gt;CONFIG_BT_LOG_SNIFFER_INFO=y&lt;/p&gt;
&lt;p&gt;can be used perhaps&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/kconfig/index.html#CONFIG_BT_LOG_SNIFFER_INFO"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/kconfig/index.html#CONFIG_BT_LOG_SNIFFER_INFO&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another useful option is&amp;nbsp;using debug keys:&amp;nbsp;&lt;br /&gt;&lt;span&gt;CONFIG_BT_USE_DEBUG_KEYS=y&lt;br /&gt;It forces Bluetooth stack of Zephyr to use hard-coded debug keys which allow sniffer to decrypt trafffic automatically&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/kconfig/index.html#CONFIG_BT_USE_DEBUG_KEYS"&gt;developer.nordicsemi.com/.../index.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>