From c159e25115098f31419e7e9ddf1791e27a5e704c Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 24 Feb 2014 13:42:06 +0000 Subject: [PATCH] improve data packet picture --- i2p2www/pages/site/docs/transport/ntcp.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/i2p2www/pages/site/docs/transport/ntcp.html b/i2p2www/pages/site/docs/transport/ntcp.html index c69ec503..6c5bc104 100644 --- a/i2p2www/pages/site/docs/transport/ntcp.html +++ b/i2p2www/pages/site/docs/transport/ntcp.html @@ -34,9 +34,17 @@ the NTCP transport sends individual I2NP messages, with a simple checksum. The unencrypted message is encoded as follows: {%- endtrans %}

{% highlight lang='dataspec' %} -+-------+-------+--//--+---//----+-------+-------+-------+-------+ -| sizeof(data) | data | padding | Adler checksum of sz+data+pad | -+-------+-------+--//--+---//----+-------+-------+-------+-------+ ++-------+-------+-------+-------+-------+-------+-------+-------+ +| sizeof(data) | | ++-------+-------+ + +| data | +~ ~ +| | ++ +-------+-------+-------+ +| | padding ++-------+-------+-------+-------+-------+-------+-------+-------+ + | Adler checksum of sz+data+pad | ++-------+-------+-------+-------+-------+-------+-------+-------+ {% endhighlight %}

{% trans -%} The data is then AES/256/CBC encrypted. The session key for the encryption