1
/* Copyright (C) 2000-2004 Thomas Bopp, Thorsten Hampel, Ludger Merkens
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
* $Id: md5.h,v 1.1.1.1 2006/03/27 12:40:19 exodusd Exp $
21
#include "crypto_types.h"
23
#define MD5_DATASIZE 64
24
#define MD5_DATALEN 16
25
#define MD5_DIGESTSIZE 16
26
#define MD5_DIGESTLEN 4
29
unsigned INT32 digest[MD5_DIGESTLEN]; /* Digest */
30
unsigned INT32 count_l, count_h; /* Block count */
31
unsigned INT8 block[MD5_DATASIZE]; /* One block buffer */
32
int index; /* index into buffer */
35
void md5_init(struct md5_ctx *ctx);
36
void md5_update(struct md5_ctx *ctx, unsigned INT8 *buffer, unsigned INT32 len);
37
void md5_final(struct md5_ctx *ctx);
38
void md5_digest(struct md5_ctx *ctx, INT8 *s);
39
void md5_copy(struct md5_ctx *dest, struct md5_ctx *src);