Add new checksum types and make clear that data excluded from the signature
authorJonathan Dieter <jdieter@gmail.com>
Mon, 19 Nov 2018 21:59:19 +0000 (21:59 +0000)
committerJonathan Dieter <jdieter@gmail.com>
Mon, 19 Nov 2018 21:59:19 +0000 (21:59 +0000)
should be omitted, not zero-filled.

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
zchunk_format.txt

index 78c2449903c1743cde0b54d277fb431214251f93..bc93594ab80be9b1e688a8e8f8bbb7fba5c4bf94 100644 (file)
@@ -134,6 +134,8 @@ Chunk checksum type
  Current values:
    0 = SHA-1
    1 = SHA-256
+   2 = SHA-512
+   3 = SHA-512/128 (first 128 bits of SHA-512 checksum)
 
 Chunk count
  This is a count of the number of chunks in the zchunk file including the
@@ -205,6 +207,7 @@ Signature size
 Signature
  The actual signature.  The signature MUST only apply to the header, excluding
  the header size, the header checksum, the signature count and the signatures.
+ The excluded data MUST be omitted when calculating the signature.
 
 Signatures are designed so that anyone can add a new signature to a file
 without changing the validity of other signatures, but the header size and