1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-20 21:27:32 +00:00

expand on the chunk id hash mechanism

according to @ThomasWaldmann, the algorithm varies according to whether encryption is enabled.
This commit is contained in:
anarcat 2015-03-05 08:48:23 -05:00
parent 8f8a035e93
commit 87cb4a4813

View file

@ -138,8 +138,8 @@ into deduplicated chunks. The reference to these chunks is then added
to the archive metadata. This allows the archive to store many files,
beyond the ``MAX_OBJECT_SIZE`` barrier of 20MB.
A chunk is an object as well, of course, and its id is the hash of its
(unencrypted and uncompressed) content.
A chunk is an object as well, of course. The chunk id is either
HMAC-SHA256_, when encryption is used, or a SHA256_ hash otherwise.
Hints are stored in a file (``repo/hints``) and contain: