From: Zooko O'Whielacronx Date: Fri, 15 Feb 2008 20:16:43 +0000 (-0700) Subject: Merge patch which switches to SHA-256d with patch that adds punctuation and capitaliz... X-Git-Tag: allmydata-tahoe-0.8.0~36 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css/flags?a=commitdiff_plain;h=b2f5ac9a0a5288222fe98252202e677107c98b95;p=tahoe-lafs%2Ftahoe-lafs.git Merge patch which switches to SHA-256d with patch that adds punctuation and capitalization to the comment about the hash value. --- diff --git a/src/allmydata/util/hashutil.py b/src/allmydata/util/hashutil.py index 6f6f90ea..add0a0f1 100644 --- a/src/allmydata/util/hashutil.py +++ b/src/allmydata/util/hashutil.py @@ -130,9 +130,7 @@ def plaintext_segment_hasher(): KEYLEN = 16 def content_hash_key_hash(k, n, segsize, data): - # this is defined to return a 16-byte AES key. We use SHA-256d here.. - # we'd like to use it everywhere, but we're only switching algorithms - # when we can hide the compatibility breaks in other necessary changes. + # This is defined to return a 16-byte AES key. param_tag = netstring("%d,%d,%d" % (k, n, segsize)) tag = CONTENT_HASH_KEY_TAG + param_tag h = tagged_hash(tag, data, KEYLEN)