From b683fe433478dd2e1cb9a881cde893b9976438c1 Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 6 Jun 2013 15:13:44 +0000 Subject: [PATCH 1/4] - Correct errors in the specification of the BuildResponseRecord. The first 32 bytes are not random; they are the hash of the following 496 bytes. --- www.i2p2/pages/i2np_spec.html | 15 ++++++++++++--- www.i2p2/pages/tunnel-alt-creation.html | 11 ++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/www.i2p2/pages/i2np_spec.html b/www.i2p2/pages/i2np_spec.html index 50aaa571..f0413b09 100644 --- a/www.i2p2/pages/i2np_spec.html +++ b/www.i2p2/pages/i2np_spec.html @@ -285,6 +285,14 @@ The two padding bytes from the block (the zero bytes at locations 0 and 257) are {% filter escape %} unencrypted: +----+----+----+----+----+----+----+----+ +| | ++ + +| | ++ SHA-256 Hash of following bytes + +| | ++ + +| | ++----+----+----+----+----+----+----+----+ | random data... | ~ ~ | | @@ -297,8 +305,9 @@ unencrypted:
 {% filter escape %}
 unencrypted:
-bytes 0-526: random data
-byte  527  : reply
+bytes 0-31   : SHA-256 Hash of bytes 32-527
+bytes 32-526 : random data
+byte  527    : reply
 
 encrypted:
 bytes 0-527: AES-encrypted record(note: same size as BuildRequestRecord)
@@ -310,7 +319,7 @@ total length: 528
 
 

Notes

This is also described in the -I2NP spec. +I2NP spec.

Tunnel Build Message Preparation

From 0023ff172c9f984bd9daf75cbadc1fcc3abe8305 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 10 Jun 2013 01:48:16 +0000 Subject: [PATCH 2/4] updates --- www.i2p2/pages/common_structures_spec.html | 13 ++++++++++++- www.i2p2/pages/team.html | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/www.i2p2/pages/common_structures_spec.html b/www.i2p2/pages/common_structures_spec.html index 4d3ae2b7..6794119d 100644 --- a/www.i2p2/pages/common_structures_spec.html +++ b/www.i2p2/pages/common_structures_spec.html @@ -1,7 +1,7 @@ {% extends "_layout.html" %} {% block title %}Common structure Specification{% endblock %} {% block content %} -Updated March 2012, current as of router version 0.8.13 +Updated June 2013, current as of router version 0.9.6

Data types Specification

This document describes some data types common to all I2P protocols, like @@ -525,6 +525,17 @@ The signature may be verified using the signing public key of the destination.

  • The signing_key is currently unused. It was intended for LeaseSet revocation, which is unimplemented. It is currently generated anew at every router startup, it is not persistent. +
  • +The earliest expiration of all the Leases is treated as the timestamp or version of the LeaseSet. +Routers will generally not accept a store of a LeaseSet unless it is "newer" than the current one. +Take care when publishing a new LeaseSet where the oldest Lease is the same as the oldest Lease +in the previous LeaseSet. The publishing router should generally increment the expiration +of the oldest Lease by at least 1 ms in that case. +
  • +Prior to release 0.9.7, when included in a DatabaseStore Message sent by the originating router, +the router set all the published leases' expirations to the same value, that of the +earliest lease. As of release 0.9.7, the router publishes the actual lease expiration for each lease. +This is an implementation detail and not part of the structures specification.
  • Javadoc

    diff --git a/www.i2p2/pages/team.html b/www.i2p2/pages/team.html index decb3702..d82a9608 100644 --- a/www.i2p2/pages/team.html +++ b/www.i2p2/pages/team.html @@ -167,6 +167,11 @@ network. [vacant] SAM maintainer + + I2PCPP lead + orion + C++ Router + Console Translations walking From 85ab88281cbfee3987961a68700e0fd4ad195058 Mon Sep 17 00:00:00 2001 From: str4d Date: Tue, 11 Jun 2013 00:26:08 +0000 Subject: [PATCH 3/4] Team updates --- www.i2p2/pages/team.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www.i2p2/pages/team.html b/www.i2p2/pages/team.html index d82a9608..c632b4c1 100644 --- a/www.i2p2/pages/team.html +++ b/www.i2p2/pages/team.html @@ -87,7 +87,7 @@ network. Website admin - [vacant] + str4d manage the public project website content @@ -102,7 +102,7 @@ network.
    - Dev + Dev Core Lead zzz lead dev for the SDK and router @@ -206,7 +206,7 @@ network. Other languages - Contributors + Contributors cervantes fire2pe dev, console enhancements @@ -218,6 +218,10 @@ network. KillYourTV Debian/Ubuntu Packager and PPA maintainer + + str4d + Routerconsole backend and UI work, website revamp, unit tests work + [vacant] From 4d7b3df779b97ac7014e81d9165181b444a10c3c Mon Sep 17 00:00:00 2001 From: str4d Date: Tue, 11 Jun 2013 00:34:45 +0000 Subject: [PATCH 4/4] Style fix --- www.i2p2/pages/team.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www.i2p2/pages/team.html b/www.i2p2/pages/team.html index c632b4c1..ddf80b68 100644 --- a/www.i2p2/pages/team.html +++ b/www.i2p2/pages/team.html @@ -87,7 +87,7 @@ network. Website admin - str4d + str4d manage the public project website content