ap_md5.h


#ifndef APACHE_MD5_H
#define APACHE_MD5_H

#ifdef __cplusplus
extern "C" {
#endif

/* MD5.H - header file for MD5C.C */

/* UINT4 defines a four byte word */
typedef unsigned int UINT4;

/* MD5 context. */
typedef struct {
    UINT4 state[4];  /* state (ABCD) */
    UINT4 count[2];  /* number of bits, modulo 2^64 (lsb first) */
    unsigned char buffer[64]; /* input buffer */
} AP_MD5_CTX;

API_EXPORT(void) ap_MD5Init(AP_MD5_CTX * context);
API_EXPORT(void) ap_MD5Update(AP_MD5_CTX * context, const unsigned char *input,
      unsigned int inputLen);
API_EXPORT(void) ap_MD5Final(unsigned char digest[16], AP_MD5_CTX * context);

#ifdef __cplusplus
}
#endif

#endif /* !APACHE_MD5_H */

定义了3个与MD5相关的api接口,以及相关的数据结构

阅读更多
换一批

没有更多推荐了,返回首页