mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 21:17:54 +00:00
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:
parent
c5c98108eb
commit
b2f5ac9a0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user