diff options
author | Donovan Baarda <abo@minkirri.apana.org.au> | 2019-09-11 00:24:46 +1000 |
---|---|---|
committer | Donovan Baarda <abo@minkirri.apana.org.au> | 2019-09-11 00:29:36 +1000 |
commit | f256758a601f50dd9e8e9b2e27bb3ca450c48ca0 (patch) | |
tree | d23a884b3f5a7bfc4b1917dd8104b1f41327e4e8 /src/checksum.c | |
parent | 3e39f5320ecf8250ba067891263df77452c468eb (diff) | |
download | librsync-f256758a601f50dd9e8e9b2e27bb3ca450c48ca0.tar.gz |
Add checksum_test.c test and move RS_*_SUM_LENGTH consts to checksum.c.
The checksum_test.c showed it makes more sense to put the checksum length
constants into checksum.c where they are most useful.
Diffstat (limited to 'src/checksum.c')
-rw-r--r-- | src/checksum.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checksum.c b/src/checksum.c index 1f9b492..cb2d108 100644 --- a/src/checksum.c +++ b/src/checksum.c @@ -25,6 +25,9 @@ #include "checksum.h" #include "blake2.h" +LIBRSYNC_EXPORT const int RS_MD4_SUM_LENGTH = 16; +LIBRSYNC_EXPORT const int RS_BLAKE2_SUM_LENGTH = 32; + /** A simple 32bit checksum that can be incrementally updated. */ rs_weak_sum_t rs_calc_weak_sum(weaksum_kind_t kind, void const *buf, size_t len) { |