⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 md5.h

📁 一款功能很强的光盘镜象制作工具
💻 H
字号:
/* MD5.H - header file for MD5C.C , define RSA MD5 func prototypes
 */
 
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.

License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.

License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.

RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this
documentation and/or software.
 */
  
#ifndef MD5_H#define MD5_H#ifdef __alphatypedef unsigned int uint32;#elsetypedef unsigned long uint32;#endifstruct MD5Context {	uint32 state[4];                              /* state (ABCD) */	uint32 count[2];   /* number of bits, modulo 2^64 (lsb first) */	unsigned char inbuf[64];                      /* input buffer */};
void MD5Init(struct MD5Context *context);void MD5Update(struct MD5Context *context, unsigned char const *buf,	       unsigned len);void MD5Final(unsigned char digest[16], struct MD5Context *context);void MD5Transform(uint32 state[4], unsigned char block[64]);char *MD5File(char *digest, char *filename);
static void Encode (unsigned char *output, uint32 *input, unsigned int len);
static void Decode (uint32 *output, unsigned char *input, unsigned int len);
static void MD5_memcpy (unsigned char *output, unsigned char *input, unsigned int len);
static void MD5_memset (unsigned char *output, int value, unsigned int len);
/* These assume a little endian machine and return incorrect results!    They are here for compatibility with old (broken) versions of RPM */int mdfileBroken(char *fn, unsigned char *digest);int mdbinfileBroken(char *fn, unsigned char *bindigest);/* * This is needed to make RSAREF happy on some MS-DOS compilers. */typedef struct MD5Context MD5_CTX;#endif /* !MD5_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -