🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63922

Re: Content-SHA1-Tree

#63922
From: Rene
Date: Thu, 06 Feb 2003 21:21
38 lines
2324 bytes
lykas@gmx.ch (Lykas) wrote:
> in my other post xor would of course have to be replaced
> with a commutative hash function to make it at least
> minimally secure.

I was just going to tell you how to break your initial suggestion. However
I don't see right at the spot how your scheme would be supposed to work
now.

In your original proposal:
id_1 = H(f_1), id_2 = H(f_2), ..., id_n = H(f_n),
id = id_1^id_2^...^id_n,
id'_1 = id_2^id_3^...^id_n,
id'_2 = id_1^id_3^...^id_n,
...,
id'_n = id_1^id_2^...^id_{n-1}.

I just need to download one correct set, get the id by calcualting the hash
of that file H(f_i) and (xor-)adding it to id'_i. Then I can make a bogus
file, calculate the hash of that and xor that with id to get a valid
looking my id'_i.

You've seen that this is highly insecure. But how are you going to replace
the xor operation with a hash exactly so that any file can be verified
independently? I don't see that right now. Hashing instead of xor'ing the
IDs wont work, because when I have f_3, I only have the already hashed
string id'_3 and not all the other id's. But I would need those to verify
f_3.

And if you make the hash operation reversible (that's almost a paradoxon),
then it is just as insecure as using xor in the first place.

Maybe I'm just not seeing the obvious, I had a hard day.

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Technical Details
Message-ID: <20030206162151.355$h5@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!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <1r3co0fjr2.fsf@vingodur.ifi.uio.no> <815b0091.0302050632.6f3802f2@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <20030206162151.355$h5@newsreader.com>
Subject: Re: Content-SHA1-Tree
Date: Thu, 06 Feb 2003 21:21:51 +0000
From: Rene <invalid@email.addr>
References: <1r3co0fjr2.fsf@vingodur.ifi.uio.no> <815b0091.0302050632.6f3802f2@posting.google.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!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com Subscriber
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com Gs4Bj2Eu,kfdfi38qcB9zCLfZdH8ZO7GhQh/cGGxEK.-SF8.7x
Lines: 37