🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64989

Re: xBin library version 0.1

#64989
From: Mirco Romanato
Date: Wed, 23 Apr 2003 15:21
99 lines
5470 bytes
"Curt Welch" <curt@kcwc.com> ha scritto nel messaggio
news:20030421201204.318$Ng@newsreader.com...

> Unfortunately, they have missed the file size problem when you try to
> securely transport partial file segments and don't submit the entire file
> to the network for transport.

I posted to the Bitzi board to have info about your issue.
This is the reply by Gordon Mohr <gojomo@yahoo.com>
I have a very high respect for the skill and knowledge of Gordon in the
cryptographic area, and I trust his reply and his opinion.
If this don't solve your doubts about using the TigerTree hash, I advice you
to subscribe to the http://zgp.org/mailman/listinfo/p2p-hackers and raise
the issue.
There are many experts that can solve your doubts in the list, and give good
advices.





Posted by:  gojomo <http://bitzi.com/bitizen/gojomo>

Thanks for bringing this conversation to our attention.

FYI, the TigerTree algorithm has only been changed once in its
history, earlier this year, to address the "trivial missized
collision" issue that was first brought to our attention last
November. We made the change after consulting with a number of
cryptographic experts as to the best solution. The THEX specification
was updated in March, and the code in the 'tigertree' and
'bitcollider' projects at Sourceforge since then.

I don't quite know what Curt Welch means by "the file size problem"
that he believes remains, and browsing over more of the conversation
at news.software.nntp hasn't helped me understand.

TigerTree (or other THEX tree-arranged hash) should be ideal for the
issue of Usenet posts split into many parts. If it is necessary to
know exactly where a part fits into the whole, and the size of the
whole, with every part, then you should include (a portion of) the
full tree with each part.

That portion could be (1) all generations of the serialized tree from
the node which includes the sent part on up to the root (in which case
you could use the THEX serialized form); or (2) all the nodes in the
same generation as the node which includes the sent part; or (3) an
even more compact "proof", which only contains the barest minimum
other node values to "paint in" the sent part's value, up to the root.

So considering a file broken into 8 parts, A B C D E F G H, and
assuming you're sending part C:

The tree is:


......O.......
..M...+...N...
I.+.J...K.+.L.
A+B.C+D.E+F.G+H


Under strategy (1), you'd send all interim values A B C D E F G H I J
K L M N O (the full THEX tree) along with the data for part C. The
recipient would know for certain the whole file's size, the whole
file's treehash, C's size, where C fits in, and every interim hash at
C's level and higher.

Under strategy (2), you'd send just the bottom interim values A B C D
E F G H along with the data for part C -- because I J K L M N O are
all trivially calculatable from the bottom generation. Again, the
recipient would know for certain the whole file's size, the whole
file's treehash, C's size, where C fits in, and every interim hash at
C's level and higher.

Under strategy (3), you'd only send the barest minimum of other values
to prove where C fits in -- D I N -- along with the data for C. (D
with C is enough to calculate J, J with I is enough to calculate M, M
with N is enough to calculate O.) Here, the recipient would know for
certain the whole file's size, the whole file's treehash, C's size,
where C fits in, and the interim hashes between C and the root value.

-- Even the "send the whole (top of) the tree" strategy #1 is a small
amount of overhead compared to large files: Splitting a 1GB file into
1024 1MB segments only requires a full tree of 2048 interim values,
~48K. That's under 5% overhead per 1MB part. (For strategy #2, that'd
be 1024 interim values: 24K, <2.5% overhead. For strategy #3, that'd
be just 10 interim values, 240bytes, <0.03% overhead -- but much more
complicated code as random parts come in.)

Hope this helps,

--------------------
This is a posting from the Bitzi Developer Discussion bboard.
To reply you can go to:
http://bitzi.com/bboard/message?message_id=102421&forum_id=4076#102455


Technical Details
Message-ID: <dcypa.60689$iy5.1814855@twister2.libero.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
References: <pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@twister2.libero.it> <pan.2003.04.08.17.40.39.978437@canada.com> <20030421115343.200$MS@newsreader.com> <VkWoa.55726$iy5.1660618@twister2.libero.it> <20030421201204.318$Ng@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <dcypa.60689$iy5.1814855@twister2.libero.it>
Subject: Re: xBin library version 0.1
Date: Wed, 23 Apr 2003 15:21:45 GMT
From: "Mirco Romanato" <painlord2k@yahoo.it>
References: <pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@twister2.libero.it> <pan.2003.04.08.17.40.39.978437@canada.com> <20030421115343.200$MS@newsreader.com> <VkWoa.55726$iy5.1660618@twister2.libero.it> <20030421201204.318$Ng@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
Newsgroups: news.software.nntp
Lines: 98
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 151.38.119.211
X-Complaints-To: abuse@net24.it
X-Trace: twister2.libero.it 1051111305 151.38.119.211 (Wed, 23 Apr 2003 17:21:45 MET DST)
NNTP-Posting-Date: Wed, 23 Apr 2003 17:21:45 MET DST
Organization: [Infostrada]