Article View: news.software.nntp
Article #64782Re: xBin library version 0.1
From: Chris AtLee
Date: Tue, 08 Apr 2003 18:19
Date: Tue, 08 Apr 2003 18:19
33 lines
2859 bytes
2859 bytes
Just finished reading some of the documentation on Tiger Tree Hashes, and it looks like they're exactly what xBin does with SHA1 hashes, except with a different hashing algorithm. They also include an extra byte of input when combining internal nodes in the tree (in order to protect against collisions). The docs also mention that the name for this type of tree is a Merkle Hash Tree. The stated advantages of the Tiger hash over the SHA1 hash are that it is equal to the SHA1 hash on a 32bit processor in terms of speed, and can be faster on 16bit or 64bit platforms. The Tiger hash produces 192 bits of output, but they claim that even a truncated 160 bit version is more secure than a SHA1 hash. http://www.cs.technion.ac.il/~biham/Reports/Tiger/tiger/tiger.html (hash algorithm) http://www.open-content.net/specs/draft-jchapweske-thex-02.html (merkle hash tree algorithm and tree exchange specification) They recommend a block size of 1,024 bytes, but the algorithm will work with any size you want. There is no mention of only including the complement of the hash tree with the data portion, it looks like they recommend to include the entire hash tree with every portion of data. Base32 is used in the tree exchange specification as opposed to Base64 that has been used when talking about xBin. Not a huge deal to overcome. So basically, in order to get an xBin post compatible with these P2P networks, the hashing algorithm used would need to be slightly different, would have to include the SHA1 hash of the entire file, and possibly change the block sized used. Cheers, Chris
Technical Details
Message-ID:
<pan.2003.04.08.18.19.33.288947@canada.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!c03.atl99!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mailReferences:
<pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@twister2.libero.it> <pan.2003.04.08.17.40.39.978437@canada.com>Show Full Headers
Complete Article Headers
Message-ID: <pan.2003.04.08.18.19.33.288947@canada.com> Subject: Re: xBin library version 0.1 Date: Tue, 08 Apr 2003 18:19:33 GMT From: "Chris AtLee" <catlee@canada.com> References: <pan.2003.04.08.05.21.36.142899@canada.com> <l_Cka.19193$iy5.537691@twister2.libero.it> <pan.2003.04.08.17.40.39.978437@canada.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!c03.atl99!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail User-Agent: Pan/0.13.4 (She had eyes like strange sins. (Debian GNU/Linux)) Newsgroups: news.software.nntp MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 32 NNTP-Posting-Host: 24.114.32.59 X-Complaints-To: abuse@rogers.com X-Trace: news01.bloor.is.net.cable.rogers.com 1049825973 24.114.32.59 (Tue, 08 Apr 2003 14:19:33 EDT) NNTP-Posting-Date: Tue, 08 Apr 2003 14:19:33 EDT