summaryrefslogtreecommitdiff
path: root/checksum.c
Commit message (Collapse)AuthorAgeFilesLines
* Tweak include syntax.Wayne Davison2020-07-201-1/+1
|
* Improve the NSTR differentiation idiom.Wayne Davison2020-06-271-1/+1
|
* Some memory allocation improvementsWayne Davison2020-06-251-2/+0
| | | | | | | | | | - All the memory-allocation macros now auto-check for failure and exit with a failure message that incudes the caller's file and lineno info. This includes strdup(). - Added the `--max-alloc=SIZE` option to be able to override the memory allocator's sanity-check limit. It defaults to 1G (as before). Fixes bugzilla bug 12769.
* Prepare for future release of XXH3 & XXH128.Wayne Davison2020-06-231-4/+97
|
* The server side can enforce its negotiation limitsWayne Davison2020-06-231-0/+2
|
* Improve how the env restricts negotiated stringsWayne Davison2020-06-231-1/+1
| | | | | | | | - The env on the server side now affects the negotiated strings that are sent to the client. - A too-old remote rsync gets a default negotiated string value so that an env restriction now handles old clients the same way as new ones.
* Fix a couple batchfile issues.Wayne Davison2020-06-101-1/+1
|
* Move the CSUM defines.Wayne Davison2020-06-011-8/+0
|
* Move OpenSSL-related MD4/5 defines and imports to lib/mdigest.hJorrit Jongma2020-06-011-11/+0
| | | | Works just as well, prevents having to repeat them across files
* A few minor xxhash changes.Wayne Davison2020-05-281-60/+41
|
* The xxh* checksums don't need to be reversed on output.Wayne Davison2020-05-281-1/+21
|
* Improve how negotiated info affects batch files.Wayne Davison2020-05-251-12/+11
|
* Make compression-level handling generic.Wayne Davison2020-05-251-1/+1
|
* Some minor tweaks & tidying up.Wayne Davison2020-05-241-7/+5
|
* Change odd-ball map_ptr() to use remainder like the others.Wayne Davison2020-05-241-1/+1
|
* Improve performance of file_checksum()Jorrit Jongma2020-05-241-10/+10
| | | | | | | | Previously files were hashed in blocks of CSUM_CHUNK (64) bytes. This causes significant overhead. The CSUM_CHUNK define cannot be changed as md5.c depends on it, but there is no obvious reason to use it in file_checksum(). By using CHUNK_SIZE (32 kB) instead, in some test cases throughput more than doubles.
* Fix negotiation of none & improve NSTR debug msgs.Wayne Davison2020-05-241-1/+1
|
* Add support for negotiated checksum names.Wayne Davison2020-05-241-176/+33
|
* Make xxh64 the "main_name" for the current xxhash.Wayne Davison2020-05-241-2/+2
|
* Some more checksum improvementsWayne Davison2020-05-241-68/+93
| | | | | | | | | - Add/improve --debug=CSUM2 messages. - Add an "xxh64" alias for "xxhash" name because we should be getting a few more xxhash variations in the future. - Tweak the matching code to handle entries that have multiple names. - Tweak some of the vars/defines.
* Unify the checksum context memory, since we only use one at a time.Wayne Davison2020-05-231-33/+37
|
* Fixed the use of openssl MD4 for transfer checksums.Wayne Davison2020-05-231-3/+3
|
* Optional openssl support for MD4 pre-transfer checksums (but, sadly, not ↵Wayne Davison2020-05-231-7/+52
| | | | transfer checksums).
* Add optional use of the openssl crypto lib for MD5.Wayne Davison2020-05-231-13/+33
|
* A little more safety in negotiate_checksum().Wayne Davison2020-05-221-8/+11
|
* Promoting xxhash support.Wayne Davison2020-05-221-0/+73
|
* Some checksum improvementsWayne Davison2020-05-221-32/+135
| | | | | | - Improve csum negotation logic. - Define the csum names in a single structure. - Add --debug=CSUM.
* AVX2 optimized version of get_checksum1() for x86-64Jorrit Jongma2020-05-221-1/+1
| | | | | | | | | Additionally restructures build switches and defines from SSE2 to SIMD, to allow potential reuse should patches become available with SIMD instructions for other processor architectures. (Some minor tweaks of Jorrit's patch to avoid requiring GNU make and to avoid C++ comments in .c files.)
* Checksum negotiation & more bits for compat_flagsWayne Davison2020-05-221-16/+72
| | | | | | | - Add checksum negotiation to the protocol so that we can easily add new checksum algorithms and each will be used when both sides support it. - Increase the size of the compat_flags value in the protocol from a byte to an int.
* SSE2/SSSE3 optimized version of get_checksum1() for x86-64Jorrit Jongma2020-05-211-0/+2
| | | | | | | | | Requires compilation using GCC C++ front end, build scripts have been modified accordingly. C++ is only used when the optimization is enabled (g++ as compiler, x86-64 build target, --enable-sse2 is passed to configure). (Wayne made a few tweaks, including making it disabled by default.)
* Spelling fixes from a Fossies run done by Jens.Wayne Davison2020-04-151-1/+1
|
* Set Copyright years and make them easier to updateWayne Davison2020-04-091-1/+1
| | | | | | | | I replaced git-set-file-times with an improved version that I wrote recently (in python3). A new script uses it to figure out the last-modified year for each *.[ch] file and updates its copyright. It also puts the latest year into the latest-year.h file for the output of --version.
* Tweak some indentation.Wayne Davison2020-04-051-17/+15
|
* Tweak the copyright year.Wayne Davison2019-03-161-1/+1
|
* Tweak copyright date.Wayne Davison2018-01-141-1/+1
|
* Fix issue with earlier path-check (fixes "make check")Wayne Davison2017-12-031-1/+1
| | | | and make a BOOL more explicit.
* More archaic-checksum improvements. This makes the len vars clearerWayne Davison2017-11-071-3/+5
| | | | and ensures that only the flist code gets the 2-byte digest len.
* Use full MD4 len for archaic protocol auth.Wayne Davison2017-10-301-0/+10
|
* Don't forget to tweak sum_update().Wayne Davison2017-10-241-0/+1
|
* Handle archaic checksums properly.Wayne Davison2017-10-241-6/+14
|
* Add --checksum-choice option to choose the checksum algorithms.Wayne Davison2016-05-011-20/+135
|
* Tweak indentation only.Wayne Davison2016-05-011-28/+27
|
* Update the copyright year.Wayne Davison2015-08-081-1/+1
|
* Add compat flag to allow proper seed checksum order.Wayne Davison2015-05-111-4/+13
| | | | Fixes the equivalent of librsync's CVE-2014-8242 issue.
* Change args to file_checksum() to prepare for future changes.Wayne Davison2014-04-191-3/+3
|
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Avoid type-punned compiler warnings for the byteorder.h macrosWayne Davison2009-10-131-1/+1
| | | | by using inline functions for the 4-char <-> uint32 conversions.
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Improved var-checker and tweaked all the issues it found.Wayne Davison2008-07-211-2/+0
|