]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
mutable: storage_index is always 16 bytes
authorBrian Warner <warner@allmydata.com>
Wed, 7 Nov 2007 01:54:34 +0000 (18:54 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 7 Nov 2007 01:54:34 +0000 (18:54 -0700)
src/allmydata/util/hashutil.py

index 0bd0b6382ad2143ae22776091561deae2688f386..5ac9854158a300e15948f97b7f2fbc330f96836a 100644 (file)
@@ -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]