1 /* $NetBSD: md2.h,v 1.1 2001/03/19 04:18:53 atatat 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 __P((MD2_CTX *)); 18 void MD2Update __P((MD2_CTX *, const unsigned char *, unsigned int)); 19 void MD2Final __P((unsigned char[16], MD2_CTX *)); 20 char *MD2End __P((MD2_CTX *, char *)); 21 char *MD2File __P((const char *, char *)); 22 char *MD2Data __P((const unsigned char *, unsigned int, char *)); 23 __END_DECLS 24 25 #endif /* _MD2_H_ */ 26