From: Brian Warner Date: Wed, 7 Nov 2007 01:54:34 +0000 (-0700) Subject: mutable: storage_index is always 16 bytes X-Git-Url: https://git.rkrishnan.org/nxhtml.html?a=commitdiff_plain;h=5739126d1169e5bb2307ccf684d1163834cd22b5;p=tahoe-lafs%2Ftahoe-lafs.git mutable: storage_index is always 16 bytes --- diff --git a/src/allmydata/util/hashutil.py b/src/allmydata/util/hashutil.py index 0bd0b638..5ac98541 100644 --- a/src/allmydata/util/hashutil.py +++ b/src/allmydata/util/hashutil.py @@ -137,4 +137,4 @@ def ssk_readkey_hash(writekey): def ssk_readkey_data_hash(IV, readkey): return tagged_pair_hash("allmydata_mutable_readkey_data_v1", IV, readkey) def ssk_storage_index_hash(readkey): - return tagged_hash("allmydata_mutable_storage_index_v1", readkey) + return tagged_hash("allmydata_mutable_storage_index_v1", readkey)[:16]