xref: /netbsd-src/include/md2.h (revision 1c9b56c830954ccf3b57004ac65562e3d6afacf6)
1 /*	$NetBSD: md2.h,v 1.2 2005/02/03 04:39:32 perry Exp $	*/
2 
3 #ifndef _MD2_H_
4 #define _MD2_H_
5 
6 #include <sys/cdefs.h>
7 #include <sys/types.h>
8 
9 /* MD2 context. */
10 typedef struct MD2Context {
11 	u_int32_t i;
12 	unsigned char C[16];		/* checksum */
13 	unsigned char X[48];		/* input buffer */
14 } MD2_CTX;
15 
16 __BEGIN_DECLS
17 void	MD2Init(MD2_CTX *);
18 void	MD2Update(MD2_CTX *, const unsigned char *, unsigned int);
19 void	MD2Final(unsigned char[16], MD2_CTX *);
20 char	*MD2End(MD2_CTX *, char *);
21 char	*MD2File(const char *, char *);
22 char	*MD2Data(const unsigned char *, unsigned int, char *);
23 __END_DECLS
24 
25 #endif /* _MD2_H_ */
26