소스 검색

expand on the chunk id hash mechanism

according to @ThomasWaldmann, the algorithm varies according to whether encryption is enabled.
anarcat 10 년 전
부모
커밋
87cb4a4813
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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: