🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #61160

Re: [FNTP] 'in-completeness'

#61160
From: Curt Welch
Date: Tue, 08 Oct 2002 02:14
88 lines
6221 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

> I'm no cryptographer, but I'd be surprised if a simpleminded XOR of
> hashes is cryptographically secure (no known way of tampering with the
> data without changing the hash).  it is obvious that the cryptographic
> properties of the hash algorithm can not be _improved_ by such an
> operation, but it is not clear that it will detract either.

In a later post I modified that idea into a hash of the hash values,
not an XOR.

So you calculate an independent MD5 hash of each 1K block.  Then you take
all those hash values, and write them logically to a file.  Then you
recurse.  You calculate the MD5 of each 1K block from that file.  You keep
doing that until you get down to a single MD5 value and that is the hash
for your file.

> I would err on the safe side, and use a proper MD5 for the whole file
> as a final check.  (the binary assembly program needs to handle the
> case where there are more than one candidate for a complete file.)

Yeah, but that is worthless to help solve the association problem.  Given
on multipart article which only conatains a segment from the full file, how
do you "prove" that the data in the article, is really from a file which
produces the hash in the message-id.  How can you prove that either the
data, or the hash, is not a fake?

With a normal hash, the only way to prove it is to include all the rest of
the data in the post (impossible of course).

With the modified tree-of-hashe system, you can include just the top of
this hash tree instead of all the real data.  That gives you enough data to
recalculate the final (top of tree) hash value without having to have
access to all the data.

> we only need the doubly linked list with the segment hashes, I think.

That does a a lot to reduce the complexity of the problem of matching up
pieces, but is still forces the download tool to do a complex mix and match
testing after it's downloaded everything it can find.  With the hash-tree
system you can verify each post separately and never have to compare it to
other posts.  Once you check it for consistency, you "know" that you have
valid data for that segement of the file.  It's far simpler to code than
something that has to build a complex map of all possible segment
combinations and them calculate various segment hashes to see what "fits".

> I haven't really thought through the issues of refills with a
> different segment size, though.

It will work.  YOu just have to grab the segments and re-create sections of
the files and then calculate hashes as required.  It's workable, but
complex.

So, if you had a segment like this:

     11111111111111111111+2222222222222222222+333333333333333333+
                       +DDDDDD+EEEEE+FFFFF+GGGGG+

Where 1, 2, and 3 above are 3 multipart articles for consicutive segments,
and D, E, F, G, and posts of the same file done in much smaller part
sizes, which overlap as shown, then if you lost part 2, but found parts
D though G, you could grab those 4 parts, and re-construct the missing 2
segment, then calcualte the hash of the missing 2 segment, and see if it
matched what was expected in the forward reference of the 1 post and
the back reference of the 3 post (which should be the same).

It would still be very complex for the download tool to solve the problem
however in light of a large set of different sized "fake" posts created
intentionally to confuse the tool.  Thought the forward and reverse hash
links reduceds the computational time by many orders of magnitude (I
think).

> >   The harder part of the system is creating the hash data that must
> >   be included with every post.  But even that is computationally as
> >   simple as calculating the hash in the first place, it just
> >   requires more memory to save all the hash values from the top of
> >   the hash tree (but still only something only in the 50K range even
> >   for huge files).
>
> 50K?  err, I think I must go back and re-read your hashing scheme.

It's in one of these articles - there are on a few hundred to look though.
:)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20021007221445.373$c7@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <39167.u92203@archiver.winews.net> <slrnapgpct.qiq.andrew+nonews@trinity.supernews.net> <3113g.u92200@archiver.winews.net> <slrnaph54l.qiq.andrew+nonews@trinity.supernews.net> <43236.1a2205@archiver.winews.net> <20021001093905.267$sh@newsreader.com> <30416.2a2200@archiver.winews.net> <20021002113832.345$xh@newsreader.com> <anf7os$me7$1@bob.news.rcn.net> <20021002223806.641$Bd@newsreader.com> <8Y9ochx3cDC@3247.org> <1rbs6behtt.fsf@atta.ifi.uio.no> <20021003220607.229$1n@newsreader.com> <1r8z1e9pv2.fsf@vingodur.ifi.uio.no> <20021006165224.658$WE@newsreader.com> <1rn0pq8v5c.fsf@vingodur.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <20021007221445.373$c7@newsreader.com>
Subject: Re: [FNTP] 'in-completeness'
Date: Tue, 08 Oct 2002 02:14:45 +0000
From: curt@kcwc.com (Curt Welch)
References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <39167.u92203@archiver.winews.net> <slrnapgpct.qiq.andrew+nonews@trinity.supernews.net> <3113g.u92200@archiver.winews.net> <slrnaph54l.qiq.andrew+nonews@trinity.supernews.net> <43236.1a2205@archiver.winews.net> <20021001093905.267$sh@newsreader.com> <30416.2a2200@archiver.winews.net> <20021002113832.345$xh@newsreader.com> <anf7os$me7$1@bob.news.rcn.net> <20021002223806.641$Bd@newsreader.com> <8Y9ochx3cDC@3247.org> <1rbs6behtt.fsf@atta.ifi.uio.no> <20021003220607.229$1n@newsreader.com> <1r8z1e9pv2.fsf@vingodur.ifi.uio.no> <20021006165224.658$WE@newsreader.com> <1rn0pq8v5c.fsf@vingodur.ifi.uio.no>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com Byztw1QpOpLIL8/qh/R+IpSiTbDfv5PuJrW6ZXZ8K6AHgE+F7
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 87