2007-05-20 22:28:49 +00:00
|
|
|
/*
|
2007-05-23 13:45:49 +00:00
|
|
|
crypto.c -- Cryptographic miscellaneous functions and initialisation
|
2007-05-20 22:28:49 +00:00
|
|
|
Copyright (C) 2007 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
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
*/
|
|
|
|
|
2007-05-23 13:45:49 +00:00
|
|
|
#include "system.h"
|
2007-05-20 22:28:49 +00:00
|
|
|
|
|
|
|
#include <gcrypt.h>
|
|
|
|
|
2007-05-23 13:45:49 +00:00
|
|
|
#include "crypto.h"
|
2007-05-20 22:28:49 +00:00
|
|
|
|
2007-05-23 13:45:49 +00:00
|
|
|
void crypto_init() {
|
|
|
|
}
|
2007-05-20 22:28:49 +00:00
|
|
|
|
2007-05-23 13:45:49 +00:00
|
|
|
void crypto_exit() {
|
|
|
|
}
|
2007-05-20 22:28:49 +00:00
|
|
|
|
2007-05-23 13:45:49 +00:00
|
|
|
void randomize(void *out, size_t outlen) {
|
|
|
|
gcry_create_nonce(out, outlen);
|
|
|
|
}
|