From 5739126d1169e5bb2307ccf684d1163834cd22b5 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 6 Nov 2007 18:54:34 -0700 Subject: [PATCH] mutable: storage_index is always 16 bytes --- src/allmydata/util/hashutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.45.2