encode.py: fix generation of plaintext/crypttext merkle trees

This commit is contained in:
Brian Warner 2007-06-07 13:14:14 -07:00
parent a383c17444
commit c81f2b01ff

View File

@ -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