From: Jonathan Dieter Date: Mon, 4 Jun 2018 05:12:02 +0000 (+0300) Subject: Header checksum and header size were in the wrong order X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~265 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5b744d0d8d0506901537a956e88a4425444773b5;p=zchunk.git Header checksum and header size were in the wrong order Signed-off-by: Jonathan Dieter --- diff --git a/zchunk_format.txt b/zchunk_format.txt index fb7944b..17deaa4 100644 --- a/zchunk_format.txt +++ b/zchunk_format.txt @@ -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: +===============+-+-+-+-+========================+