Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/md2.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*  $NetBSD: md2.h,v 1.7 2016/07/01 16:42:46 christos Exp $ */
0002 
0003 #ifndef _MD2_H_
0004 #define _MD2_H_
0005 
0006 #include <sys/types.h>
0007 
0008 #include <stdint.h>
0009 
0010 #define MD2_DIGEST_LENGTH       16
0011 #define MD2_DIGEST_STRING_LENGTH    33
0012 #define MD2_BLOCK_LENGTH        16
0013 
0014 /* MD2 context. */
0015 typedef struct MD2Context {
0016     uint32_t i;
0017     unsigned char C[16];        /* checksum */
0018     unsigned char X[48];        /* input buffer */
0019 } MD2_CTX;
0020 
0021 #ifdef __cplusplus
0022 extern "C" {
0023 #endif
0024 
0025 void    MD2Init(MD2_CTX *);
0026 void    MD2Update(MD2_CTX *, const unsigned char *, unsigned int);
0027 void    MD2Final(unsigned char[16], MD2_CTX *);
0028 char    *MD2End(MD2_CTX *, char *);
0029 char    *MD2File(const char *, char *);
0030 char    *MD2FileChunk(const char *, char *, off_t, off_t);
0031 char    *MD2Data(const unsigned char *, size_t, char *);
0032 
0033 #ifdef __cplusplus
0034 }
0035 #endif
0036 
0037 #endif /* _MD2_H_ */