diff options
author | Donovan Baarda <abo@minkirri.apana.org.au> | 2018-02-23 16:06:29 +1100 |
---|---|---|
committer | Donovan Baarda <abo@minkirri.apana.org.au> | 2018-02-23 16:06:29 +1100 |
commit | 0bf02090b24664835c06be954a253efd34bffc37 (patch) | |
tree | 31ec698b3ff897e4233bad5214deabd5e88e88ea /src/checksum.c | |
parent | 92207b458cad6f0b98559e2a9b7df510b431d788 (diff) | |
download | librsync-0bf02090b24664835c06be954a253efd34bffc37.tar.gz |
Run 'make tidyc' over code.
Diffstat (limited to 'src/checksum.c')
-rw-r--r-- | src/checksum.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/checksum.c b/src/checksum.c index cdc68c7..0149ef4 100644 --- a/src/checksum.c +++ b/src/checksum.c @@ -32,7 +32,6 @@ #include "rollsum.h" #include "blake2.h" - /** A simple 32bit checksum that can be incrementally updated. */ rs_weak_sum_t rs_calc_weak_sum(void const *buf, size_t len) { @@ -43,23 +42,20 @@ rs_weak_sum_t rs_calc_weak_sum(void const *buf, size_t len) return RollsumDigest(&sum); } - -/** - * Calculate and store into SUM a strong MD4 checksum of the file - * blocks seen so far. +/** Calculate and store into SUM a strong MD4 checksum of the file blocks seen + * so far. * - * In plain rsync, the checksum is perturbed by a seed value. This is - * used when retrying a failed transmission: we've discovered that the - * hashes collided at some point, so we're going to try again with - * different hashes to see if we can get it right. (Check tridge's - * thesis for details and to see if that's correct.) + * In plain rsync, the checksum is perturbed by a seed value. This is used + * when retrying a failed transmission: we've discovered that the hashes + * collided at some point, so we're going to try again with different hashes to + * see if we can get it right. (Check tridge's thesis for details and to see + * if that's correct.) * - * Since we can't retry a web transaction I'm not sure if it's very - * useful in rproxy. - */ + * Since we can't retry a web transaction I'm not sure if it's very useful in + * rproxy. */ void rs_calc_md4_sum(void const *buf, size_t len, rs_strong_sum_t *sum) { - rs_mdfour((unsigned char *) sum, buf, len); + rs_mdfour((unsigned char *)sum, buf, len); } void rs_calc_blake2_sum(void const *buf, size_t len, rs_strong_sum_t *sum) |