brian m. carlson | f18f816 | 2017-03-11 22:28:18 +0000 | [diff] [blame] | 1 | #ifndef HASH_H |
| 2 | #define HASH_H |
| 3 | |
| 4 | #if defined(SHA1_PPC) |
| 5 | #include "ppc/sha1.h" |
| 6 | #elif defined(SHA1_APPLE) |
| 7 | #include <CommonCrypto/CommonDigest.h> |
| 8 | #elif defined(SHA1_OPENSSL) |
| 9 | #include <openssl/sha.h> |
Jeff King | 8325e43 | 2017-03-16 18:09:12 -0400 | [diff] [blame] | 10 | #elif defined(SHA1_DC) |
Ævar Arnfjörð Bjarmason | 86cfd61 | 2017-07-01 22:05:46 +0000 | [diff] [blame] | 11 | #ifdef DC_SHA1_SUBMODULE |
| 12 | #include "sha1collisiondetection/lib/sha1.h" |
| 13 | #else |
Jeff King | 8325e43 | 2017-03-16 18:09:12 -0400 | [diff] [blame] | 14 | #include "sha1dc/sha1.h" |
Ævar Arnfjörð Bjarmason | 86cfd61 | 2017-07-01 22:05:46 +0000 | [diff] [blame] | 15 | #endif |
brian m. carlson | f18f816 | 2017-03-11 22:28:18 +0000 | [diff] [blame] | 16 | #else /* SHA1_BLK */ |
| 17 | #include "block-sha1/sha1.h" |
| 18 | #endif |
| 19 | |
| 20 | #endif |