Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3a3b1bd286
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (40 sloc) 1.082 kb
/* md5.h
** interface to MD5 hash function
** This code is in the Public Domain.
/** @file
* MD5 hash API.
#ifndef MD5_H
#define MD5_H
/* we use the uint32_t type from stdint.h
* if it is not available, add a typedef here:
/* make sure the stdint.h types are available */
#if defined(_MSC_VER) /* Microsoft Visual C++ */
typedef unsigned int uint32_t;
#include <stdint.h>
struct MD5Context {
uint32_t buf[4];
uint32_t bits[2];
unsigned char in[64];
#define MD5Init sasl_MD5Init
#define MD5Update sasl_MD5Update
#define MD5Final sasl_MD5Final
#define MD5DumpBytes sasl_MD5DumpBytes
void sasl_MD5Init(struct MD5Context *context);
void sasl_MD5Update(struct MD5Context *context, unsigned char const *buf,
uint32_t len);
void sasl_MD5Final(unsigned char digest[16], struct MD5Context *context);
void MD5Transform(uint32_t buf[4], const unsigned char in[64],
struct MD5Context *ctx);
#ifdef DEBUG_MD5
void sasl_MD5DumpBytes(unsigned char *b, int len);
#endif /* !MD5_H */
Jump to Line
Something went wrong with that request. Please try again.