]> cygwin.com Git - cygwin-apps/cygutils.git/blame - src/mcookie/md5.h
Fixes for cygstart; bump version number and documentation
[cygwin-apps/cygutils.git] / src / mcookie / md5.h
CommitLineData
eb7cdcb6
CW
1/* ORIGINAL LICENSE:
2 * This code is in the public domain; do with it what you wish.
3 * Revised 2002-07-12: Charles Wilson
4 * modified to work on cygwin; integrated into cygutils package
5 * Changes licensed under the GPL
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 *
21 * See the COPYING file for license information.
22 */
23#ifndef MD5_H
24#define MD5_H
25
26#if defined (__alpha__) || defined (__ia64__)
27typedef unsigned int uint32;
28#else
29typedef unsigned long uint32;
30#endif
31
32struct MD5Context {
33 uint32 buf[4];
34 uint32 bits[2];
35 unsigned char in[64];
36};
37
38void MD5Init(struct MD5Context *context);
39void MD5Update(struct MD5Context *context, unsigned char const *buf,
40 unsigned len);
41void MD5Final(unsigned char digest[16], struct MD5Context *context);
42void MD5Transform(uint32 buf[4], uint32 const in[16]);
43
44/*
45 * This is needed to make RSAREF happy on some MS-DOS compilers.
46 */
47typedef struct MD5Context MD5_CTX;
48
49#endif /* !MD5_H */
This page took 0.026601 seconds and 5 git commands to generate.