diff options
Diffstat (limited to 'src/util/crypto_hkdf.c')
-rw-r--r-- | src/util/crypto_hkdf.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/util/crypto_hkdf.c b/src/util/crypto_hkdf.c index 0aa653658..eb91780cb 100644 --- a/src/util/crypto_hkdf.c +++ b/src/util/crypto_hkdf.c | |||
@@ -36,12 +36,29 @@ | |||
36 | * - Matthias Wachs (08.10.2010) | 36 | * - Matthias Wachs (08.10.2010) |
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include <gcrypt.h> | 39 | /** |
40 | * Set this to 0 if you compile this code outside of GNUnet. | ||
41 | */ | ||
42 | #define GNUNET_BUILD 1 | ||
43 | |||
44 | /** | ||
45 | * Enable debugging. | ||
46 | */ | ||
47 | #define DEBUG_HKDF 0 | ||
48 | |||
40 | 49 | ||
50 | #if GNUNET_BUILD | ||
41 | #include "platform.h" | 51 | #include "platform.h" |
42 | #include "gnunet_crypto_lib.h" | 52 | #include "gnunet_crypto_lib.h" |
53 | #else | ||
54 | #define GNUNET_NO 0 | ||
55 | #define GNUNET_YES 1 | ||
56 | #define GNUNET_SYSERR -1 | ||
57 | #include <stdlib.h> | ||
58 | #endif | ||
59 | |||
60 | #include <gcrypt.h> | ||
43 | 61 | ||
44 | #define DEBUG_HKDF GNUNET_NO | ||
45 | 62 | ||
46 | /** | 63 | /** |
47 | * @brief Compute the HMAC | 64 | * @brief Compute the HMAC |