๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #61426

Re: [FNTP] more on hash chunk sizes

#61426
From: Curt Welch
Date: Sun, 13 Oct 2002 20:18
84 lines
5035 bytes
claus-usenet-20021013@faerber.muc.de (Claus_F๏ฟฝrber) wrote:
> Curt Welch <curt@kcwc.com> schrieb/wrote:
> > THE HASH
>
> > To start with, let me explain for anyone not following this, that we
> > are basically defining a hash algorthm that works well with multipart
> > posts because it allows you to verify that a single post matches it's
> > hash id without having access to all the other posts.
>
> There seems to be a hash function called TigerTree that already does
> that. TigerTree uses 1 kiB blocks.

I'll have to look for a reference to that.

> A derieved method is called bitprint, which just concatenats a SHA1 and
> a TigerTree hash.

Which I guess simply gives you a larger and more secure hash?

More security doesn't seem to be needed for this applicaion, and a larger
hash doesn't help the Message-ID length issue.  But having two hashes to
pick from might be worth something

> We should define a Content-Hash header field that can hold any hashes in
> the form <name>=<value> instead of defining a new header (like Content-
> MD5) for each hash method.

Yeah, extending it with a paramater name would be better than making up
a new Content-Hash-Name: header.  But the semantics of this header I
suspect is very differetnt than the Content-MD5 header so you don't want to
confuse it with that anyway.  The MIME message only constains a segment of
the entire file and the entire file.  And the hash is for the entire file
for which the included segment is a part of.  It's a subtle but very
different concept.

I don't know MIME well enough to debate where this hash value would best
fit in a MIME standard, but it seems to me that this is something that
belongs in something like a Content-Partial-Segment: header.  I think you
need a new header that would document the fact this data is only a segment
of a larger file, and to document the information about the larger file, so
something like:

Content-Partial-Segement: seg-offset=12000; seg-size=3500;
   file-size=12312312312; <hash>=JudF8D763bdtgdDerhgdf

Where <hash> could be different names for differty types of hash values.

Content-MD5: could still be used, but it would only be the MD5 of this
  segment, not the hash for the entire file.


> > UUENCODE
>
> > Like I said in another post, to make this system compatible with
> > uuencode we have the problem that uuencode puts 45 bytes of file data
> > on each line. When you post in uuencode format, each article must fall
> > on a uuencode line break.
>
> With Base64, which is the better solution anyway, we have a maximum of
> 76 characters (= 57 encoded octets) per line.
>
> But Base64 allows to use less than this number of characters per line,
> so it's possible to just insert a line break early if you need a break.
> With the resulting block size of 3 octets, we could split posts at every
> 3 kiB boundary.
>
> If we define a new encoding (like an improved yEnc), we have to make
> sure that we can split a post at every signle octet.

Yes for sure.  Only uuencode has this alignment problem.  Base64 and yEnc
don't have those problems because short lines are allowed ... I'm not
confused am I?  yEnc when used for multiparts doesn't have a problem like
that does it?  I'll have to double check that - it's got some stuff about
line lenths that never should have been in the spec in the first place.

If we create/pick a new encoding that would be "the standard" for all
Usenet binary in the future, then it too would need to have to same power
to support segements of any byte length.  But all MIME CTEs have that now
so there's no reason to expect a problem anyhow.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20021013161854.690$3V@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!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <hpk9quk1cq0ti2reeu03epd0tgf4b8a8p0@4ax.com> <20021010014047.034$XV@newsreader.com> <ao4htp$rq1$1@bob.news.rcn.net> <20021011161123.133$Fc_-_@newsreader.com> <8Yl1XwH3cDC@3247.org>

Show Full Headers
Complete Article Headers
Message-ID: <20021013161854.690$3V@newsreader.com>
Subject: Re: [FNTP] more on hash chunk sizes
Date: Sun, 13 Oct 2002 20:18:54 +0000
From: curt@kcwc.com (Curt Welch)
References: <hpk9quk1cq0ti2reeu03epd0tgf4b8a8p0@4ax.com> <20021010014047.034$XV@newsreader.com> <ao4htp$rq1$1@bob.news.rcn.net> <20021011161123.133$Fc_-_@newsreader.com> <8Yl1XwH3cDC@3247.org>
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!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com NaCJiY0HAq.phWtLpPZJKWrD3bjaQ@+04X+Cm.TXQd1,sBnf
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: 83