Forráskód Böngészése

expand on the chunk id hash mechanism

according to @ThomasWaldmann, the algorithm varies according to whether encryption is enabled.
anarcat 10 éve
szülő
commit
87cb4a4813
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      docs/internals.rst

+ 2 - 2
docs/internals.rst

@@ -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,
 to the archive metadata. This allows the archive to store many files,
 beyond the ``MAX_OBJECT_SIZE`` barrier of 20MB.
 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:
 Hints are stored in a file (``repo/hints``) and contain: