]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add empty FIPS PRF wrapper for CryptoAPI
authorJouni Malinen <j@w1.fi>
Sun, 20 Dec 2009 16:14:20 +0000 (18:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Dec 2009 16:14:20 +0000 (18:14 +0200)
src/crypto/fips_prf_cryptoapi.c [new file with mode: 0644]
wpa_supplicant/Makefile

diff --git a/src/crypto/fips_prf_cryptoapi.c b/src/crypto/fips_prf_cryptoapi.c
new file mode 100644 (file)
index 0000000..17d3116
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * FIPS 186-2 PRF for Microsoft CryptoAPI
+ * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#include "includes.h"
+
+#include "common.h"
+#include "crypto.h"
+
+
+int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen)
+{
+       /* FIX: how to do this with CryptoAPI? */
+       return -1;
+}
index 9980ac777f5066fbd15822021ff640275d249464..8a9c70cf98f18be773accdbf499726a23a4a12ad 100644 (file)
@@ -764,6 +764,9 @@ OBJS += ../src/crypto/tls_schannel.o
 endif
 OBJS += ../src/crypto/crypto_cryptoapi.o
 OBJS_p += ../src/crypto/crypto_cryptoapi.o
+ifdef NEED_FIPS186_2_PRF
+OBJS += ../src/crypto/fips_prf_cryptoapi.o
+endif
 CONFIG_INTERNAL_SHA256=y
 CONFIG_INTERNAL_RC4=y
 CONFIG_INTERNAL_DH_GROUP5=y