<?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>[Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112164/questions-dac-private-key-length-in-factory-data-confusing</link><description>Dear sir: 
 The DAC private key is generated using P256, and the key length is 256 bits, which is 32 bytes. 
 As below link, why is 68 bytes planned in the factory data? 
 developer.nordicsemi.com/.../nrfconnect_factory_data_configuration.html 
 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jun 2024 08:03:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112164/questions-dac-private-key-length-in-factory-data-confusing" /><item><title>RE: [Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/thread/489207?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 08:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c120f769-acea-4872-ae6d-3743c88f305c</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for your strong support!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I&amp;#39;ll close this ticket soon.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Chuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/thread/489205?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 07:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edae1d1c-5a6b-4039-83d4-4c9df68a3d06</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No worries! :)&amp;nbsp;&lt;/p&gt;
[quote user="susepc"] &amp;nbsp; &amp;nbsp; Can I use raw byte to store key not using byte string?[/quote]
&lt;p&gt;This parameter is a byte string based on the Matter spec due to&amp;nbsp;how octets, keys (which is an octet string AFAIK) and more are defined, so according to my understanding of the specification you will have to comply with the byte string format to avoid breaking the spec.&lt;/p&gt;
&lt;p&gt;Ref: Matter Core Spec v 1.2, chapter 4.13.2.4, 6.5.10, 10.3.6&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/thread/489200?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 07:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24764777-1c24-478f-8286-8c916d9bbd5b</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for your great support!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sorry to bother you again, I have&amp;nbsp;one last question：&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Can I use raw byte to store key not using byte string?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If not, please let me know the reason, thx!&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Chuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/thread/489192?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 07:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1d1516-a068-4c35-8be1-a142c493efef</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The byte string item is explained as:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8484.pastedimage1718694258577v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/thread/489173?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 03:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842e8807-d64a-4bb3-bf95-f94a57692271</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for your quickly response!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Does the last 4 bytes of data represent the &lt;em&gt;dac_key&lt;/em&gt;&lt;span&gt;&amp;nbsp;field value&amp;nbsp;&lt;/span&gt;length or the ASCII of &amp;quot;&lt;span&gt;hex:&lt;/span&gt;&amp;quot;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;If it is the former, what is the role of this length?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/thread/489091?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 12:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3227b4cc-3aa8-43f1-9f2a-c39433496e68</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Ah, it makes sense that it is 68 Bytes.&lt;/p&gt;
&lt;p&gt;The field is written in&amp;nbsp;&lt;em&gt;byte string&lt;/em&gt; format, i.e if the raw DAC key is 32 Bytes length, then the&amp;nbsp;&lt;em&gt;dac_key&lt;/em&gt; field value should have&lt;span&gt;&lt;span dir="ltr"&gt;&amp;nbsp;&lt;code&gt;32*2+len(hex:) =&amp;gt; 64+4 =&amp;gt; 68 Bytes&lt;/code&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Questions]DAC private key length in factory data confusing</title><link>https://devzone.nordicsemi.com/thread/489072?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 11:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2443fca-4745-4817-9e2a-f0442bc47cfd</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve had a look in the Matter 1.2 specification and I could not find a specific reason myself for why this was the case, so I&amp;#39;ve asked the developers for some input. I&amp;#39;ll get back to you with a verification when I hear from them.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>