From: Christian Weisgerber Subject: Re: add checksumming support to got_deflate_to_file To: gameoftrees@openbsd.org Date: Thu, 20 May 2021 16:12:37 +0200 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. -- Christian "naddy" Weisgerber naddy@mips.inka.de