diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-11-14 04:09:33 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-14 16:54:52 +0900 |
commit | a2ce0a752600a44979da94b19aa1b367c6850bd7 (patch) | |
tree | 8053b48486e56cd2719508fa4f996e22997d989f /hash.h | |
parent | 50c817e0c02a133a1615ba32971fd5f6649c894f (diff) | |
download | git-a2ce0a752600a44979da94b19aa1b367c6850bd7.tar.gz |
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>
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -81,6 +81,9 @@ struct git_hash_algo { /* The length of the hash in hex characters. */ size_t hexsz; + /* The block size of the hash. */ + size_t blksz; + /* The hash initialization function. */ git_hash_init_fn init_fn; |