From 3ef0b28f870b649c5d79ac6a86b68787207eefb0 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Fri, 7 Jun 2019 13:41:25 +0000
Subject: [PATCH] clarify bits 3-1 in enc. ls2 flags

---
 i2p2www/spec/encryptedleaseset.rst               | 10 +++++-----
 i2p2www/spec/proposals/123-new-netdb-entries.rst | 12 ++++++------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/i2p2www/spec/encryptedleaseset.rst b/i2p2www/spec/encryptedleaseset.rst
index 4ecb1da01..a7a7ba58e 100644
--- a/i2p2www/spec/encryptedleaseset.rst
+++ b/i2p2www/spec/encryptedleaseset.rst
@@ -208,14 +208,14 @@ Flags
 
     Bit 0: 0 for everybody, 1 for per-client, auth section to follow
 
-    Bits 3-1: Authentication scheme, only if bit 0 is set to 1 for per-client, otherwise 0
-              0: DH client authentication (or no per-client authentication)
-              1: PSK client authentication
+    Bits 3-1: Authentication scheme, only if bit 0 is set to 1 for per-client, otherwise 000
+              000: DH client authentication (or no per-client authentication)
+              001: PSK client authentication
 
     Bits 7-4: Unused, set to 0 for future compatibility
 
 DH client auth data
-    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 0.
+    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 000.
 
     ephemeralPublicKey
         32 bytes
@@ -236,7 +236,7 @@ DH client auth data
             32 bytes
 
 PSK client auth data
-    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 1.
+    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 001.
 
     authSalt
         32 bytes
diff --git a/i2p2www/spec/proposals/123-new-netdb-entries.rst b/i2p2www/spec/proposals/123-new-netdb-entries.rst
index 502c24abc..22fddbf0c 100644
--- a/i2p2www/spec/proposals/123-new-netdb-entries.rst
+++ b/i2p2www/spec/proposals/123-new-netdb-entries.rst
@@ -5,7 +5,7 @@ New netDB Entries
     :author: zzz, str4d, orignal
     :created: 2016-01-16
     :thread: http://zzz.i2p/topics/2051
-    :lastupdated: 2019-06-04
+    :lastupdated: 2019-06-07
     :status: Open
     :supercedes: 110, 120, 121, 122
 
@@ -648,14 +648,14 @@ Flags
 
     Bit 0: 0 for everybody, 1 for per-client, auth section to follow
 
-    Bits 3-1: Authentication scheme, only if bit 0 is set to 1 for per-client, otherwise 0
-              0: DH client authentication (or no per-client authentication)
-              1: PSK client authentication
+    Bits 3-1: Authentication scheme, only if bit 0 is set to 1 for per-client, otherwise 000
+              000: DH client authentication (or no per-client authentication)
+              001: PSK client authentication
 
     Bits 7-4: Unused, set to 0 for future compatibility
 
 DH client auth data
-    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 0.
+    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 000.
 
     ephemeralPublicKey
         32 bytes
@@ -676,7 +676,7 @@ DH client auth data
             32 bytes
 
 PSK client auth data
-    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 1.
+    Present if flag bit 0 is set to 1 and flag bits 3-1 are set to 001.
 
     authSalt
         32 bytes
-- 
GitLab