1 /* $NetBSD: md2.h,v 1.6 2005/12/26 19:01:47 perry Exp $ */
9 #define MD2_DIGEST_LENGTH 16
10 #define MD2_DIGEST_STRING_LENGTH 33
13 typedef struct MD2Context
{
15 unsigned char C
[16]; /* checksum */
16 unsigned char X
[48]; /* input buffer */
20 void MD2Init(MD2_CTX
*);
21 void MD2Update(MD2_CTX
*, const unsigned char *, unsigned int);
22 void MD2Final(unsigned char[16], MD2_CTX
*);
23 char *MD2End(MD2_CTX
*, char *);
24 char *MD2File(const char *, char *);
25 char *MD2FileChunk(const char *, char *, off_t
, off_t
);
26 char *MD2Data(const unsigned char *, size_t, char *);