diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-01-12 00:24:56 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-16 08:33:34 +0100 |
commit | 7aae4aad3fde187b51baab100014c19dc0195c67 (patch) | |
tree | 2424dbb6bf7a926ff0f3837183e92593936f9b70 /include | |
parent | 3d036263a42c2fd89272a68c457d31018a878de5 (diff) | |
download | barebox-7aae4aad3fde187b51baab100014c19dc0195c67.tar.gz barebox-7aae4aad3fde187b51baab100014c19dc0195c67.tar.xz |
crypto: digest: Change the signature of digest_file_window()
On 32-bit systems "ulong" will limit digest_file_window()'s maximum
size to 4 GiB. Convert "start" and "size" to "loff_t" in order to be
able to handle maximum file size supported by the rest of the system.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/digest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/digest.h b/include/digest.h index a1cdbb2d7a..a87e29bd28 100644 --- a/include/digest.h +++ b/include/digest.h @@ -100,7 +100,7 @@ void digest_free(struct digest *d); 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); |