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
7 #ifdef DISABLE_SHA512_DIGEST
8 #undef SHA512_DIGEST_LENGTH
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
20 #define MAX_DIGEST_LEN MD5_DIGEST_LEN
27 #define CSUM_MD4_ARCHAIC 1
28 #define CSUM_MD4_BUSTED 2
29 #define CSUM_MD4_OLD 3
33 #define CSUM_XXH3_64 7
34 #define CSUM_XXH3_128 8
36 #define CSUM_SHA256 10
37 #define CSUM_SHA512 11