Download raw body.
add checksumming support to got_deflate_to_file
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.
add checksumming support to got_deflate_to_file