🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63750

Re: Power-Post 2003 - requesting input from authorities..

#63750
From: Curt Welch
Date: Fri, 31 Jan 2003 19:50
44 lines
3141 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Klaas <spamhole@klaas.ca> writes:
> > After careful consideration, Kjetil Torgrim Homme muttered:
>
> >>   2) add Content-SHA1-Tree to verify fragments
>
> > Why not make that Content-Hash-Tree and specify the hash as a
> > parameter? Just in case SHA1 is determined to be cryptologically
> > unsound in the future.  (I also think that Content-MD5 should be
> > Content-Hash, for similar reasons).
>
> If you call it Content-Hash-Tree, you need to add some identifier to the
> hashes saying what algorithm they're using, whereas if you put the
> algorithm in the header name, you can just introduce a new header when
> you want to change algorithms.
>
> The latter can be better for backward compatibility under some
> circumstances, although I'd guess that it's usually a wash.

You need to support both if you were to make a change so then it becomes an
issue of doing this:

Content-SHA1-Tree: xxxxx
Content-Tiger-Tree: yyyyy

vs:

Content-Hash-Tree: SHA1:xxxx  Tiger:yyyy

So if the hash algorithm isn't implicit in the header, then you not only
need to add it to the content, but you also need the ability to include
multiple hash values in the same header.  But since the second value isn't
defined yet, that might be a problem - will the syntax of the new hash fit
well in the syntax of the old header?

A header is already a label for the data.  Why not use it like that?  Why
add sub-headers when they are not needed?  I think the first approach is
the obvious correct one.  Define one header, with one meaning.  If you need
to change to a new hash in the future, add a new header.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030131145023.341$TQ@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!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <ylof6vxswg.fsf@windlord.stanford.edu> <1041805796.462257@ok-corral.gunslinger.net> <1rsmw7dtt7.fsf@ellifu.ifi.uio.no> <1041817429.714471@ok-corral.gunslinger.net> <1rel7rdo1d.fsf@ellifu.ifi.uio.no> <Xns92FB69E20C612nothing@209.98.50.131> <ylbs2vvv4j.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20030131145023.341$TQ@newsreader.com>
Subject: Re: Power-Post 2003 - requesting input from authorities..
Date: Fri, 31 Jan 2003 19:50:23 +0000
From: curt@kcwc.com (Curt Welch)
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <ylof6vxswg.fsf@windlord.stanford.edu> <1041805796.462257@ok-corral.gunslinger.net> <1rsmw7dtt7.fsf@ellifu.ifi.uio.no> <1041817429.714471@ok-corral.gunslinger.net> <1rel7rdo1d.fsf@ellifu.ifi.uio.no> <Xns92FB69E20C612nothing@209.98.50.131> <ylbs2vvv4j.fsf@windlord.stanford.edu>
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!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com CYKCoN4/o2HJBwp=R.d_c_ZuXLPFm6pM+fcfRAlxJI,MuqL
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: 43