Header checksum and header size were in the wrong order
authorJonathan Dieter <jdieter@gmail.com>
Mon, 4 Jun 2018 05:12:02 +0000 (08:12 +0300)
committerJonathan Dieter <jdieter@gmail.com>
Mon, 4 Jun 2018 05:12:02 +0000 (08:12 +0300)
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
zchunk_format.txt

index fb7944bbec12f8a46b14b1ab494ce6ad2330387c..17deaa4144b2a12b7ff6b78ceb8d16f41003cd78 100644 (file)
@@ -15,9 +15,9 @@ Definitions:
  number.
 
 The lead:
-+-+-+-+-+-+====================+=================+==================+
-|   ID    | Checksum type (ci) | Header checksum | Header size (ci) |
-+-+-+-+-+-+====================+=================+==================+
++-+-+-+-+-+====================+==================+=================+
+|   ID    | Checksum type (ci) | Header size (ci) | Header checksum |
++-+-+-+-+-+====================+==================+=================+
 
 ID
  '\0ZCK1', identifies file as zchunk version 1 file
@@ -30,13 +30,13 @@ Checksum type
    0 = SHA-1
    1 = SHA-256
 
+Header size:
+ This is an integer containing the size of the header, not including the lead
+
 Header checksum
  This is the checksum of everything from the beginning of the file
  until the end of the index, ignoring the header checksum.
 
-Header size:
- This is an integer containing the size of the header, not including the lead
-
 
 The preface:
 +===============+-+-+-+-+========================+