From: Brian Warner Date: Thu, 7 Jun 2007 20:14:14 +0000 (-0700) Subject: encode.py: fix generation of plaintext/crypttext merkle trees X-Git-Tag: allmydata-tahoe-0.3.0~21 X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/index.php?a=commitdiff_plain;h=c81f2b01ffc6d6c7fee9cd48814bdc3772417f76;p=tahoe-lafs%2Ftahoe-lafs.git encode.py: fix generation of plaintext/crypttext merkle trees --- diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py index 444d1e45..61a0c5a0 100644 --- a/src/allmydata/encode.py +++ b/src/allmydata/encode.py @@ -259,8 +259,9 @@ class Encoder(object): crypttext_hasher.update(encrypted_piece) chunks.append(encrypted_piece) - self._plaintext_hashes.append(plaintext_hash(input_piece)) - self._crypttext_hashes.append(crypttext_hash(encrypted_piece)) + self._plaintext_hashes.append(plaintext_hasher.digest()) + self._crypttext_hashes.append(crypttext_hasher.digest()) + d = codec.encode(chunks) d.addCallback(self._encoded_segment, segnum) return d