gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [lsd0001] branch master updated: add record padding


From: gnunet
Subject: [GNUnet-SVN] [lsd0001] branch master updated: add record padding
Date: Thu, 03 Oct 2019 21:14:07 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository lsd0001.

The following commit(s) were added to refs/heads/master by this push:
     new 1c4ecd0  add record padding
1c4ecd0 is described below

commit 1c4ecd088e2453f23adf0e70e3312731a9b553f3
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Thu Oct 3 21:11:58 2019 +0200

    add record padding
---
 draft-schanzen-gns.html | 28 +++++++++++++++++++---------
 draft-schanzen-gns.xml  | 26 ++++++++++++++++++--------
 2 files changed, 37 insertions(+), 17 deletions(-)

diff --git a/draft-schanzen-gns.html b/draft-schanzen-gns.html
index 16070e8..023c049 100644
--- a/draft-schanzen-gns.html
+++ b/draft-schanzen-gns.html
@@ -1193,8 +1193,10 @@ async function addMetadata(){try{const 
e=document.styleSheets[0].cssRules;for(le
      |           FLAGS       |        DATA           /
      +-----+-----+-----+-----+                       /
      /                                               /
-     /                                               /
-     /                                               |
+     /                       +-----+-----+-----+-----+
+     /                       |      PADDING          /
+     +-----+-----+-----+-----+                       /
+     |                                               |
      +-----+-----+-----+-----+-----+-----+-----+-----+
      </pre>
 </div>
@@ -1210,7 +1212,10 @@ async function addMetadata(){try{const 
e=document.styleSheets[0].cssRules;for(le
 </dd>
           <dt id="section-3.1-4.3">DATA SIZE</dt>
           <dd id="section-3.1-4.4">
-     The size of the DATA field in bytes and in network byte order.<a 
href="#section-3.1-4.4" class="pilcrow">¶</a>
+      The size of the DATA field in bytes and in network byte order including
+      padding. The padding MUST ensure that the size of the resource record
+      is a power of two. The only excption is the PKEY record type, which is
+      never padded.<a href="#section-3.1-4.4" class="pilcrow">¶</a>
 </dd>
           <dt id="section-3.1-4.5">TYPE</dt>
           <dd id="section-3.1-4.6">
@@ -1230,6 +1235,11 @@ async function addMetadata(){try{const 
e=document.styleSheets[0].cssRules;for(le
           <dd id="section-3.1-4.10">
      The resource record data payload. The contents are defined by the
      respective type of the resource record.<a href="#section-3.1-4.10" 
class="pilcrow">¶</a>
+</dd>
+          <dt id="section-3.1-4.11">PADDING</dt>
+          <dd id="section-3.1-4.12">
+     The padding MUST contain the 0 value in all octets. Not applicable for
+     PKEY records.<a href="#section-3.1-4.12" class="pilcrow">¶</a>
 </dd>
         </dl>
 <p id="section-3.1-5">
@@ -1385,7 +1395,7 @@ async function addMetadata(){try{const 
e=document.styleSheets[0].cssRules;for(le
 <div class="artwork art-text alignLeft" id="section-4.1-1">
 <pre>
         PRK_h := HKDF-Extract ("key-derivation", zk)
-        h := HKDF-Expand (PRK_h, label, 512 / 8)
+        h := HKDF-Expand (PRK_h, label | "gns", 512 / 8)
         x_h := h*x mod p
         zk_h := h*zk mod p
         q := SHA512 (zk_h)
@@ -1783,10 +1793,10 @@ async function addMetadata(){try{const 
e=document.styleSheets[0].cssRules;for(le
       e4f4ff06d263f9d5
 
       RDATA :=
-      000000010005af87
-      005b914000000017
-      0000000f00000000
-      000a046d61696c0a
+      000000010005af87 RR COUNT | EXPIRA-
+      005b914000000017 -TION    | DATA SIZE (23)
+      0000000f00000000 TYPE (15=MX) | FLAGS (0)
+      000a046d61696c0a DATA (prio=10 mx=mail.hoi-polloi.org.)
       686f692d706f6c6c
       6f69036f72670000
       0000000000000000
@@ -1827,7 +1837,7 @@ async function addMetadata(){try{const 
e=document.styleSheets[0].cssRules;for(le
       7bc65a676b7a6d23    ||
       b2ef300f7fc70058    \/
       059e7f29e594b5c1____________
-      000000570000000f BDATA SIZE | PURPOSE
+      000000570000000f BDATA SIZE (=87) | PURPOSE (=15)
       0005af87005b9140 EXPIRATION
       5fb6552e3959ff9f BDATA
       d80c1b0213dc7ef1    ||
diff --git a/draft-schanzen-gns.xml b/draft-schanzen-gns.xml
index e713fb2..32e6187 100644
--- a/draft-schanzen-gns.xml
+++ b/draft-schanzen-gns.xml
@@ -111,8 +111,10 @@
      |           FLAGS       |        DATA           /
      +-----+-----+-----+-----+                       /
      /                                               /
-     /                                               /
-     /                                               |
+     /                       +-----+-----+-----+-----+
+     /                       |      PADDING          /
+     +-----+-----+-----+-----+                       /
+     |                                               |
      +-----+-----+-----+-----+-----+-----+-----+-----+
      ]]></artwork>
     <!--        <postamble>which is a very simple example.</postamble>-->
@@ -127,7 +129,10 @@
     </dd>
     <dt>DATA SIZE</dt>
     <dd>
-     The size of the DATA field in bytes and in network byte order.
+      The size of the DATA field in bytes and in network byte order including
+      padding. The padding MUST ensure that the size of the resource record
+      is a power of two. The only excption is the PKEY record type, which is
+      never padded.
     </dd>
     <dt>TYPE</dt>
     <dd>
@@ -148,6 +153,11 @@
      The resource record data payload. The contents are defined by the
      respective type of the resource record.
    </dd>
+   <dt>PADDING</dt>
+   <dd>
+     The padding MUST contain the 0 value in all octets. Not applicable for
+     PKEY records.
+   </dd>
  </dl>
  <t>
    Flags indicate metadata surrounding the resource record. A flag
@@ -643,10 +653,10 @@
       e4f4ff06d263f9d5
 
       RDATA :=
-      000000010005af87
-      005b914000000017
-      0000000f00000000
-      000a046d61696c0a
+      000000010005af87 RR COUNT | EXPIRA-
+      005b914000000017 -TION    | DATA SIZE (23)
+      0000000f00000000 TYPE (15=MX) | FLAGS (0)
+      000a046d61696c0a DATA (prio=10 mx=mail.hoi-polloi.org.)
       686f692d706f6c6c
       6f69036f72670000
       0000000000000000
@@ -687,7 +697,7 @@
       7bc65a676b7a6d23    ||
       b2ef300f7fc70058    \/
       059e7f29e594b5c1____________
-      000000570000000f BDATA SIZE | PURPOSE
+      000000570000000f BDATA SIZE (=87) | PURPOSE (=15)
       0005af87005b9140 EXPIRATION
       5fb6552e3959ff9f BDATA
       d80c1b0213dc7ef1    ||

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]