Some minor option/prompt tweaks.
[rsync.git] / lib / md-defines.h
blob6ef6a6897cb3f01524e50fcc459c1d70cb7bc1be
1 /* Keep this simple so both C and ASM can use it */
3 /* These allow something like CFLAGS=-DDISABLE_SHA512_DIGEST */
4 #ifdef DISABLE_SHA256_DIGEST
5 #undef SHA256_DIGEST_LENGTH
6 #endif
7 #ifdef DISABLE_SHA512_DIGEST
8 #undef SHA512_DIGEST_LENGTH
9 #endif
11 #define MD4_DIGEST_LEN 16
12 #define MD5_DIGEST_LEN 16
13 #if defined SHA512_DIGEST_LENGTH
14 #define MAX_DIGEST_LEN SHA512_DIGEST_LENGTH
15 #elif defined SHA256_DIGEST_LENGTH
16 #define MAX_DIGEST_LEN SHA256_DIGEST_LENGTH
17 #elif defined SHA_DIGEST_LENGTH
18 #define MAX_DIGEST_LEN SHA_DIGEST_LENGTH
19 #else
20 #define MAX_DIGEST_LEN MD5_DIGEST_LEN
21 #endif
23 #define CSUM_CHUNK 64
25 #define CSUM_gone -1
26 #define CSUM_NONE 0
27 #define CSUM_MD4_ARCHAIC 1
28 #define CSUM_MD4_BUSTED 2
29 #define CSUM_MD4_OLD 3
30 #define CSUM_MD4 4
31 #define CSUM_MD5 5
32 #define CSUM_XXH64 6
33 #define CSUM_XXH3_64 7
34 #define CSUM_XXH3_128 8
35 #define CSUM_SHA1 9
36 #define CSUM_SHA256 10
37 #define CSUM_SHA512 11