mutable: storage_index is always 16 bytes

This commit is contained in:
Brian Warner 2007-11-06 18:54:34 -07:00
parent 7e43c7b5f9
commit 5739126d11

View 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]