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>
This commit is contained in:

committed by
Junio C Hamano

parent
50c817e0c0
commit
a2ce0a7526
@ -90,6 +90,7 @@ const struct git_hash_algo hash_algos[GIT_HASH_NALGOS] = {
|
||||
0x00000000,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
git_hash_unknown_init,
|
||||
git_hash_unknown_update,
|
||||
git_hash_unknown_final,
|
||||
@ -102,6 +103,7 @@ const struct git_hash_algo hash_algos[GIT_HASH_NALGOS] = {
|
||||
0x73686131,
|
||||
GIT_SHA1_RAWSZ,
|
||||
GIT_SHA1_HEXSZ,
|
||||
GIT_SHA1_BLKSZ,
|
||||
git_hash_sha1_init,
|
||||
git_hash_sha1_update,
|
||||
git_hash_sha1_final,
|
||||
|
Reference in New Issue
Block a user