Article View: news.software.nntp
Article #61276Re: [FNTP] verifying that part reposts belong to a file - solution
From: Bas Ruiter
Date: Thu, 10 Oct 2002 15:01
Date: Thu, 10 Oct 2002 15:01
108 lines
5121 bytes
5121 bytes
> [quote moved from below] > > I think someone else mentioned binary trees in the previous discussion? > > Not binary trees, but hash trees. Hash trees, I meant, of course. > So who are you quoting and from where? Is this your work or someone else? It's not mine, but someone elses. Look in sci.crypt. I put a similar thread there, and Daniel Mehkeri (dmehkeri_AT_victoria_DOT_swi_DOT_com) came up with this answer. sci.crypt seemed a good place to ask with regards to this kinda thing. > And I propose putting the final hash (the one at the top of the tree) into > the Message-ID. We will use that as the unique identifier for all files > posted to Usenet in the format. Yes, I was thikning that as well. Just didn't mention it as it wasn't relevant to the idea. > > > Let W1 = H(P1), W2 = H(P2), ... , W8 = H(P8). H is your hash function. > > > Let X1 = H(W1|W2), X2 = H(W3|W4), X3 = H(W5|W6), X4 = H(W7|W8). > > > Let Y1 = H(X1|X2), Y2 = H(X3|X4). > > > Let Z = H(Y1|Y2). > > > > > > Put Z in the 0/N file. > > What is the | function in the above notation? It's not an OR is it like it > is in C? You would never want to use OR. But XOR might work ok. No idea. I assumed it was the OR function tho. Not that I think it matters much, OR, XOR, or concatenat. I assume you say "not an OR is it" because you consider OR weak? I thought the subsequent hashing would prevent any succesfull tinkering with the OR. > I'm only a bit concernted that if you only hash two values to get one, that > it won't be as secure as if you were to hash more at each level of the > tree. The overall strenght of the idea (to positively identify a (bogus) part AND be tamper-proof) depends on the strenght of the hash, no? It's still impossible to construct a MD5 hash collision, so nothing that's done is going to pass. > And assuming that taking the hash of the hash values does not weaken the > security which it very well may. I'd like to get advice on that from > people that know more about it than I do. The thread in sci.crypt is only a day or so old. Ask away :) > > 3. an article can contain a repost that's a multiple of P. > > I don't know why you say "repost". I'm thinking of this for all binary > posts on usenet, not just "reposts". Ah, right. Just my frame of mind, as "we" set out to solve the repost / completeness problem. > each other. I'm still thinking something in the 1K size is about > right. Wouldn't that mean a HUGE amount of hashes would be generated for any file of non-trivial size? > 0.5 * P what? I don't get what you are saying. Oh, wait, I do get > what you are saying. If you want to post some byte range, but are forced > to post more to make it align to the chunk size of P then you waste data, > but the waste can be up to 2P-2 bytes, not .5 P right? But you don't need > to waste anything. You just split it on the P boundries to start with. The 0.5 * P I mentioned was the average waste per artcile, not the maximum. It was also wrong. I was thinking HD fragmentation & waste, & forgot that with HD's the waste is always ONLY at the end of a cluster. So you're right - waste is max 2P-2, and averages P-1. You also mentioned that original posting is to be done using the same chunk size, so reposts will always align thus cutting down on possible waste. Not that it really matters, I suppose, but can you relly assume that the recipient is missing a piece of his file that starts at a boundary? > I think these ideas are just getting better and better. I'm beginning to > feel the need to write proof of concept code.... :) > Cool stuff. Yes indeed. To quote Hannibal, "I love it when a plan comes together" Bas Ruiter -- [ l o r d s n o w @home.nl http://members.home.nl/ l o r d s n o w ] Only when the population of 50 mysteriously dropped to 7 did the remainder start to suspect Hungry.
Technical Details
Message-ID:
<t02bquo9kn92td3042tc7p83a1viivobo5@4ax.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.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news.trueserver.nl!newshub1.nl.home.com!news.nl.home.com!zwoll1.home.nl.POSTED!not-for-mailReferences:
<hpk9quk1cq0ti2reeu03epd0tgf4b8a8p0@4ax.com> <20021010014047.034$XV@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <t02bquo9kn92td3042tc7p83a1viivobo5@4ax.com> Subject: Re: [FNTP] verifying that part reposts belong to a file - solution Date: Thu, 10 Oct 2002 17:01:29 +0200 From: Bas Ruiter <lordsnow@home.nl> References: <hpk9quk1cq0ti2reeu03epd0tgf4b8a8p0@4ax.com> <20021010014047.034$XV@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.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news.trueserver.nl!newshub1.nl.home.com!news.nl.home.com!zwoll1.home.nl.POSTED!not-for-mail Newsgroups: news.software.nntp X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 107 NNTP-Posting-Host: 213.51.200.31 X-Complaints-To: abuse@home.nl X-Trace: zwoll1.home.nl 1034262136 213.51.200.31 (Thu, 10 Oct 2002 17:02:16 MEST) NNTP-Posting-Date: Thu, 10 Oct 2002 17:02:16 MEST Organization: @Home Network