]> git.ipfire.org Git - thirdparty/git.git/commit
sha1-file: add a constant for hash block size
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 14 Nov 2018 04:09:33 +0000 (04:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Nov 2018 07:54:52 +0000 (16:54 +0900)
commita2ce0a752600a44979da94b19aa1b367c6850bd7
tree8053b48486e56cd2719508fa4f996e22997d989f
parent50c817e0c02a133a1615ba32971fd5f6649c894f
sha1-file: add a constant for hash block size

There is one place we need the hash algorithm block size: the HMAC code
for push certs.  Expose this constant in struct git_hash_algo and expose
values for SHA-1 and for the largest value of any hash.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
hash.h
sha1-file.c