2007-05-22 21:32:48 +00:00
|
|
|
/*
|
|
|
|
digest.h -- header file digest.c
|
2013-05-01 15:17:22 +00:00
|
|
|
Copyright (C) 2013 Guus Sliepen <guus@tinc-vpn.org>
|
2007-05-22 21:32:48 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2009-09-29 13:33:58 +00:00
|
|
|
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.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2007-05-22 21:32:48 +00:00
|
|
|
*/
|
|
|
|
|
2013-05-01 15:17:22 +00:00
|
|
|
#ifndef __TINC_OPENSSL_DIGEST_H__
|
|
|
|
#define __TINC_OPENSSL_DIGEST_H__
|
2007-05-22 21:32:48 +00:00
|
|
|
|
2007-05-23 13:45:49 +00:00
|
|
|
#include <openssl/evp.h>
|
2007-05-22 21:32:48 +00:00
|
|
|
|
2013-08-13 18:40:40 +00:00
|
|
|
struct digest {
|
2007-05-23 13:45:49 +00:00
|
|
|
const EVP_MD *digest;
|
2009-06-06 17:04:04 +00:00
|
|
|
int maclength;
|
2009-12-18 00:15:25 +00:00
|
|
|
int keylength;
|
|
|
|
char *key;
|
2013-08-13 18:40:40 +00:00
|
|
|
};
|
2007-05-22 21:32:48 +00:00
|
|
|
|
|
|
|
#endif
|