From 7bb22193e6733cc4baac9402337641d3fb0aa2fd Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Mon, 19 Nov 2018 21:59:19 +0000 Subject: [PATCH] Add new checksum types and make clear that data excluded from the signature should be omitted, not zero-filled. Signed-off-by: Jonathan Dieter --- zchunk_format.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zchunk_format.txt b/zchunk_format.txt index 78c2449..bc93594 100644 --- a/zchunk_format.txt +++ b/zchunk_format.txt @@ -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 -- 2.30.2