/*
prf.c -- Pseudo-Random Function for key material generation
- Copyright (C) 2011 Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2011-2012 Guus Sliepen <guus@tinc-vpn.org>
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
#include "system.h"
+#include <openssl/obj_mac.h>
+
#include "digest.h"
#include "prf.h"
static bool prf_xor(int nid, const char *secret, size_t secretlen, char *seed, size_t seedlen, char *out, ssize_t outlen) {
digest_t digest;
-
+
if(!digest_open_by_nid(&digest, nid, -1))
return false;