1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
13 @file crypt_register_all_hashes.c
18 #define REGISTER_HASH(h) do {\
19 LTC_ARGCHK(register_hash(h) != -1); \
22 int register_all_hashes(void)
25 REGISTER_HASH(&tiger_desc);
28 REGISTER_HASH(&md2_desc);
31 REGISTER_HASH(&md4_desc);
34 REGISTER_HASH(&md5_desc);
37 REGISTER_HASH(&sha1_desc);
40 REGISTER_HASH(&sha224_desc);
43 REGISTER_HASH(&sha256_desc);
46 REGISTER_HASH(&sha384_desc);
49 REGISTER_HASH(&sha512_desc);
52 REGISTER_HASH(&sha512_224_desc);
55 REGISTER_HASH(&sha512_256_desc);
58 REGISTER_HASH(&sha3_224_desc);
59 REGISTER_HASH(&sha3_256_desc);
60 REGISTER_HASH(&sha3_384_desc);
61 REGISTER_HASH(&sha3_512_desc);
64 REGISTER_HASH(&rmd128_desc);
67 REGISTER_HASH(&rmd160_desc);
70 REGISTER_HASH(&rmd256_desc);
73 REGISTER_HASH(&rmd320_desc);
76 REGISTER_HASH(&whirlpool_desc);
79 REGISTER_HASH(&blake2s_128_desc);
80 REGISTER_HASH(&blake2s_160_desc);
81 REGISTER_HASH(&blake2s_224_desc);
82 REGISTER_HASH(&blake2s_256_desc);
85 REGISTER_HASH(&blake2b_160_desc);
86 REGISTER_HASH(&blake2b_256_desc);
87 REGISTER_HASH(&blake2b_384_desc);
88 REGISTER_HASH(&blake2b_512_desc);
91 REGISTER_HASH(&chc_desc);
92 LTC_ARGCHK(chc_register(find_cipher_any("aes", 8, 16)) == CRYPT_OK);
97 /* ref: $Format:%D$ */
98 /* git commit: $Format:%H$ */
99 /* commit time: $Format:%ai$ */