root/ext/digest/md5.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. MD5_CTX

   1 #ifndef _MD5_H_
   2 #define _MD5_H_
   3 
   4 #include <gauche.h>
   5 #include <gauche/extend.h>
   6 #include <sys/types.h>
   7 
   8 #define MD5_HASHBYTES 16
   9 
  10 #if !defined(HAVE_U_INT32_T)
  11 #  if  !defined(HAVE_UINT32_T)
  12 #    define u_int32_t int
  13 #  else
  14 #    define u_int32_t uint32_t
  15 #  endif
  16 #endif /*!HAVE_U_INT32_T*/
  17 
  18 typedef struct MD5Context {
  19         u_int32_t buf[4];
  20         u_int32_t bits[2];
  21         unsigned char in[64];
  22 } MD5_CTX;
  23 
  24 extern void   MD5Init(MD5_CTX *context);
  25 extern void   MD5Update(MD5_CTX *context, unsigned char const *buf,
  26                unsigned len);
  27 extern void   MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
  28 extern void   MD5Transform(u_int32_t buf[4], u_int32_t const in[16]);
  29 extern char * MD5End(MD5_CTX *, char *);
  30 extern char * MD5File(const char *, char *);
  31 extern char * MD5Data (const unsigned char *, unsigned int, char *);
  32 
  33 #endif /* !_MD5_H_ */

/* [<][>][^][v][top][bottom][index][help] */