fwknop/digest.h
Damien Stuart 8b54a0d4d6 Added sha1 refactored the access to the digest routines via digest.c. Other misc teaks to format and style of digest code.
git-svn-id: file:///home/mbr/svn/fwknop/trunk@8 510a4753-2344-4c79-9c09-4d669213fbeb
2008-12-04 01:47:32 +00:00

46 lines
1.2 KiB
C

/* $Id$
*****************************************************************************
*
* File: digest.h
*
* Author: Damien S. Stuart
*
* Purpose: Header for the fwknop digest.c.
*
* License (GNU Public License):
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
*****************************************************************************
*/
#ifndef _DIGEST_H_
#define _DIGEST_H_
#include <endian.h>
#include "types.h"
/* This should be fine for most linux systems (hopefully).
* TODO: We should look into the portability of this. --DSS
*/
#define BYTEORDER __BYTE_ORDER
#include "md5.h"
#include "sha.h"
void md5(char* in, char* out, int in_len);
void sha1(char* in, char* out, int in_len);
void sha256(char* in, char* out, int in_len);
#endif /* _DIGEST_H_ */
/***EOF***/