diff --git a/crypto/digest.c b/crypto/digest.c index 7b34742..9b7b730 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -221,7 +221,7 @@ } static int digest_update_from_fd(struct digest *d, int fd, - ulong start, ulong size) + loff_t start, loff_t size) { unsigned char *buf = xmalloc(PAGE_SIZE); int ret = 0; @@ -257,7 +257,7 @@ static int digest_update_from_memory(struct digest *d, const unsigned char *buf, - ulong size) + loff_t size) { while (size) { unsigned long now = min_t(typeof(size), PAGE_SIZE, size); @@ -277,7 +277,7 @@ int digest_file_window(struct digest *d, const char *filename, unsigned char *hash, const unsigned char *sig, - ulong start, ulong size) + loff_t start, loff_t size) { int fd, ret; unsigned char *buf; diff --git a/include/digest.h b/include/digest.h index a1cdbb2..a87e29b 100644 --- a/include/digest.h +++ b/include/digest.h @@ -100,7 +100,7 @@ int digest_file_window(struct digest *d, const char *filename, unsigned char *hash, const unsigned char *sig, - ulong start, ulong size); + loff_t start, loff_t size); int digest_file(struct digest *d, const char *filename, unsigned char *hash, const unsigned char *sig);