aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_hkdf.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-08 14:19:06 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-08 14:19:06 +0000
commit28857f155429eebd86d764db00fdb83d6091ea8b (patch)
tree77adedde4b9e59f2c86f25fe6c6829c5c067c416 /src/util/crypto_hkdf.c
parent00a88ebc379643d10a453cb63a34d90e34430395 (diff)
downloadgnunet-28857f155429eebd86d764db00fdb83d6091ea8b.tar.gz
gnunet-28857f155429eebd86d764db00fdb83d6091ea8b.zip
enable out-of-gnunet build
Diffstat (limited to 'src/util/crypto_hkdf.c')
-rw-r--r--src/util/crypto_hkdf.c21
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