Merge lp://staging/~jderose/filestore/protocol-fix into lp://staging/filestore
Status: | Merged |
---|---|
Merged at revision: | 213 |
Proposed branch: | lp://staging/~jderose/filestore/protocol-fix |
Merge into: | lp://staging/filestore |
Diff against target: |
519 lines (+147/-110) 4 files modified
doc/filestore.rst (+35/-7) doc/protocol.rst (+95/-78) filestore.py (+7/-15) test_filestore.py (+10/-10) |
To merge this branch: | bzr merge lp://staging/~jderose/filestore/protocol-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Jordan | Approve | ||
Review via email: mp+76162@code.staging.launchpad.net |
Description of the change
This adds 2 new personalization strings:
PERS_LEAF_INDEX = b'20110430 <email address hidden> dmedia/leaf-index'
PERS_FILE_SIZE = b'20110430 <email address hidden> dmedia/file-size'
And 2 new hashing functions:
hash_leaf_index()
hash_file_size()
And updates hash_leaf() and hash_root() so that instead of simple concatenation like this:
leaf_hashes = skein512(
root_hash = skein515(
They now do this:
leaf_hashes = skein512(
root_hash = skein515(
Other than that, I just updated the test case values and the documentation.
Thanks again, friendly anonymous reviewer!
Good catch, definitely approved.