claws-mail/src/common/md5.h
Colin Leroy a6adc4b287 2007-10-14 [colin] 3.0.2cvs73
* src/imap.c
	* src/common/md5.c
	* src/common/md5.h
	* src/gtk/manage_window.c
	* src/gtk/manage_window.h
		Remove more unused code
2007-10-14 18:49:34 +00:00

41 lines
1.3 KiB
C

/* md5.h - MD5 Message-Digest Algorithm
* Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
*
* according to the definition of MD5 in RFC 1321 from April 1992.
* NOTE: This is *not* the same file as the one from glibc
*
* 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 3, 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MD5_HDR_
#define _MD5_HDR_
#include "utils.h"
typedef struct { /* Hmm, should be private */
u32 A,B,C,D;
u32 nblocks;
unsigned char buf[64];
int count;
int finalized;
} MD5_CONTEXT;
void md5_hex_digest(char *hexdigest, const unsigned char *s);
void md5_hex_hmac(char *hexdigest,
const unsigned char* text, int text_len,
const unsigned char* key, int key_len);
#endif /* _MD5_HDR_ */