"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: add checksumming support to got_deflate_to_file
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Thu, 20 May 2021 16:41:42 +0200

Download raw body.

Thread
On Thu, May 20, 2021 at 04:12:37PM +0200, Christian Weisgerber wrote:
> Stefan Sperling:
> 
> > This will eventually be used by 'gotadmin pack'
> 
> It looks incomplete.
> 
> There is no initialization.  The SHA-1 context needs to be initialized
> with SHA1Init(3), and the CRC also needs a special initial crc32(3)
> call.
> 
> The SHA-1 hash will also need SHA1Final(3) before it can used.

This needs to be done by the caller.

We will have to compute a checksum over an entire pack file.
A pack file contains many objects, and each such object will need to
be mixed into the pack file's checksum as the object is written out
and compressed in the process.