Article View: news.software.nntp
Article #64810Re: xBin library version 0.1
From: Mirco Romanato
Date: Thu, 10 Apr 2003 11:34
Date: Thu, 10 Apr 2003 11:34
68 lines
4579 bytes
4579 bytes
"Chris AtLee" <catlee@canada.com> ha scritto nel messaggio news:pan.2003.04.08.18.19.33.288947@canada.com... > 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) I will not push too much the security side, because SHA1 is secure enought for now (as Tiger) and we can not say when a breakthroug will happen in cryptography that make obsolete SHA1 and Tiger. This is the rationale of using two different hashes fro different family of algoritms. The chance that either hash will be broken in the same time is many time smaller than the chance a single hash is broken. This is because bitprint use SHA1 and TTH. > 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. If you read TigerTree hash don't be fooled from the name, this must be red like TigerTree [root] hash. When you start downloading a file you request the TigerTree hash tree complete for the last N levels (N=1 only the root, N=2 3 hashes, etc.) Then you can validate the tree computing the hashes of the single chunks and checking the root value. If they are the same, the tree of hashes is validated. There is no need to transfer the entire tree any time you transfer a chunk of data. And you can limit the number of level of the tree to accomodate the size of the chunk. If a post is 512 KBytes you can have only one TT hash (the hash of the computed 512 hashes of 1024 bytes chunks) or you can decide to transfer in the header only two additional (total 3 hashes) describing the binary data and check the two 256 kbytes chunk. If you are really paranoid, you can include the TT hash of the chunk of file (for checking for corruption in the payload) and ONE additional hash for every level of the TigerTree tree. These hashes are the hashes computed with the resulting hash in the next level. So you can check the correctness of the tree. So, a file from 512 MBs+1byte to 1024 MBs will need 13 hashes only to check if a chunk of 512 KBytes fit in the file described from the hash (1 root hash, 1 hash for every level (11) and the hash of the chunk). So 512 KBytes will need additional 312 Bytes of data. To describe the chunk you need around 2,3% of the chunks size, but there is no point to describe a file to a so fine detail (1024 bytes chunks), you can opt to describe only chunks of 64 KBytes or more, so you need only 192 additional bytes. All this is less than 512 bytes for a chunk of 512 KBytes from a file of 1 GB. For 1 TB file with chunks of 512 KB described to a detail of 64 KB you will need 744 bytes. English is not my native language, so if there is some point difficult to understand please tell me. Mirco
Technical Details
Message-ID:
<SEcla.24588$DT4.710457@twister1.libero.it>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.uchicago.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister1.libero.it.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> <pan.2003.04.08.18.19.33.288947@canada.com>Show Full Headers
Complete Article Headers
Message-ID: <SEcla.24588$DT4.710457@twister1.libero.it> Subject: Re: xBin library version 0.1 Date: Thu, 10 Apr 2003 11:34:10 GMT From: "Mirco Romanato" <painlord2k@yahoo.it> 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> <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.uchicago.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail Newsgroups: news.software.nntp Lines: 67 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 151.42.206.25 X-Complaints-To: abuse@net24.it X-Trace: twister1.libero.it 1049974450 151.42.206.25 (Thu, 10 Apr 2003 13:34:10 MET DST) NNTP-Posting-Date: Thu, 10 Apr 2003 13:34:10 MET DST Organization: [Infostrada]