Skip to content
Snippets Groups Projects
Commit 001fd7a9 authored by Atousa Pahlevan Duprat's avatar Atousa Pahlevan Duprat Committed by Junio C Hamano
Browse files

sha1: allow limiting the size of the data passed to SHA1_Update()


Using the previous commit's inredirection mechanism for SHA1,
support a chunked implementation of SHA1_Update() that limits the
amount of data in the chunk passed to SHA1_Update().

This is enabled by using the Makefile variable SHA1_MAX_BLOCK_SIZE
to specify chunk size.  When using Apple's CommonCrypto library this
is set to 1GiB (the implementation cannot handle more 4GiB).

Signed-off-by: default avatarAtousa Pahlevan Duprat <apahlevan@ieee.org>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 3bc72fde
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment