Merge patch which switches to SHA-256d with patch that adds punctuation and capitalization to the comment about the hash value.

This commit is contained in:
Zooko O'Whielacronx 2008-02-15 13:16:43 -07:00
parent c5c98108eb
commit b2f5ac9a0a

View File

@ -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)