1 /* MD2.H - header file for MD2C.C
5 /* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
8 License to copy and use this software is granted for
9 non-commercial Internet Privacy-Enhanced Mail provided that it is
10 identified as the "RSA Data Security, Inc. MD2 Message Digest
11 Algorithm" in all material mentioning or referencing this software
14 RSA Data Security, Inc. makes no representations concerning either
15 the merchantability of this software or the suitability of this
16 software for any particular purpose. It is provided "as is"
17 without express or implied warranty of any kind.
19 These notices must be retained in any copies of any part of this
20 documentation and/or software.
26 typedef struct MD2Context
{
27 unsigned char state
[16]; /* state */
28 unsigned char checksum
[16]; /* checksum */
29 unsigned int count
; /* number of bytes, modulo 16 */
30 unsigned char buffer
[16]; /* input buffer */
33 #include <sys/cdefs.h>
36 void MD2Init(MD2_CTX
*);
37 void MD2Update(MD2_CTX
*, const void *, unsigned int);
38 void MD2Pad(MD2_CTX
*);
39 void MD2Final(unsigned char [16], MD2_CTX
*);
40 char * MD2End(MD2_CTX
*, char *);
41 char * MD2File(const char *, char *);
42 char * MD2FileChunk(const char *, char *, off_t
, off_t
);
43 char * MD2Data(const void *, unsigned int, char *);