X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fgcrypt%2Fprf.c;fp=src%2Fopenssl%2Fcrypto.h;h=f9a21121c8016b324b1d92a8bd0d6819bcff4511;hp=8047bfbec3f70d2df5feb4b089cf41d6dd8b7cc7;hb=9b9230a0a79c670b86f54fadd2807b864ff9d91f;hpb=e70b5b5bd77bb66e8dd324c17d86d9bff151aa82 diff --git a/src/openssl/crypto.h b/src/gcrypt/prf.c similarity index 64% rename from src/openssl/crypto.h rename to src/gcrypt/prf.c index 8047bfbe..f9a21121 100644 --- a/src/openssl/crypto.h +++ b/src/gcrypt/prf.c @@ -1,6 +1,6 @@ /* - crypto.h -- header for crypto.c - Copyright (C) 2007 Guus Sliepen + prf.c -- Pseudo-Random Function for key material generation + Copyright (C) 2011-2013 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,11 +17,13 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_CRYPTO_H__ -#define __TINC_CRYPTO_H__ +#include "../system.h" -extern void crypto_init(); -extern void crypto_exit(); -extern void randomize(void *, size_t); +#include "digest.h" +#include "../digest.h" +#include "../prf.h" -#endif +bool prf(const char *secret, size_t secretlen, char *seed, size_t seedlen, char *out, size_t outlen) { + logger(DEBUG_ALWAYS, LOG_ERR, "PRF support using libgcrypt not implemented"); + return false; +}