资源简介
MD5算法原理和实现都已给出……MD5算法文件、头文件、驱动文件……
代码片段和文件信息
/* MD5C.C - RSA Data Security Inc. MD5 message-digest algorithm
*/
/* 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.
*/
#include “global.h“
#include “md5.h“
/* Constants for MD5Transform routine.
*/
#define S11 7
#define S12 12
#define S13 17
#define S14 22
#define S21 5
#define S22 9
#define S23 14
#define S24 20
#define S31 4
#define S32 11
#define S33 16
#define S34 23
#define S41 6
#define S42 10
#define S43 15
#define S44 21
static void MD5Transform PROTO_LIST ((UINT4 [4] unsigned char [64]));
static void Encode PROTO_LIST
((unsigned char * UINT4 * unsigned int));
static void Decode PROTO_LIST
((UINT4 * unsigned char * unsigned int));
static void MD5_memcpy PROTO_LIST ((POINTER POINTER unsigned int));
static void MD5_memset PROTO_LIST ((POINTER int unsigned int));
static unsigned char PADDING[64] = {
0x80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
};
/* F G H and I are basic MD5 functions.
*/
#define F(x y z) (((x) & (y)) | ((~x) & (z)))
#define G(x y z) (((x) & (z)) | ((y) & (~z)))
#define H(x y z) ((x) ^ (y) ^ (z))
#define I(x y z) ((y) ^ ((x) | (~z)))
/* ROTATE_LEFT rotates x left n bits.
*/
#define ROTATE_LEFT(x n) (((x) << (n)) | ((x) >> (32-(n))))
/* FF GG HH and II transformations for rounds 1 2 3 and 4.
Rotation is separate from addition to prevent recomputation.
*/
#define FF(a b c d x s ac) { \
(a) += F ((b) (c) (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a) (s)); \
(a) += (b); \
}
#define GG(a b c d x s ac) { \
(a) += G ((b) (c) (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a) (s)); \
(a) += (b); \
}
#define HH(a b c d x s ac) { \
(a) += H ((b) (c) (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a) (s)); \
(a) += (b); \
}
#define II(a b c d x s ac) { \
(a) += I ((b) (c) (d)) + (x) + (UINT4)(ac); \
(a) = ROTATE_LEFT ((a) (s)); \
(a) += (b); \
}
/* MD5 initialization. Begi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 817 1995-08-09 09:25 md5\global.h
文件 115 1995-08-10 23:21 md5\Makefile
文件 1388 1995-08-09 09:25 md5\md5.h
文件 10768 1995-08-09 09:25 md5\md5c.c
文件 5094 1995-08-09 09:37 md5\mddriver.c
文件 1099 1995-08-09 09:23 md5\test-suite
目录 0 2009-09-11 23:08 md5
----------- --------- ---------- ----- ----
19281 7
- 上一篇:基于IIC总线PCF8591AD转换的仿真测试
- 下一篇:QT的简要界面设计的一个
相关资源
- 基于IIC总线PCF8591AD转换的仿真测试
- 基于LCD1602读取DS18B20序列号proteus仿真
- 基于LCD1602与LED同时的proteus仿真温度测
- 基于51单片机LCDLM041L显示贪吃蛇小游戏
- VS2005下可用的mscomm组件
- CAA 开发涉及到的全局函数
- TcpFileTransferDemo.rar
- ActiveX for chrome 插件
- Cadence_virtuoso部分快捷键
- 操作系统进程调度算法课程设计报告
- 漂亮的TabControl
- OPCDAAuto.dll64位不能注册解决方案
- imtoken安卓客户端源码 含btc eos eth实现
- 3d结构光扫描 opencv
- pubg-map-hack编译的驱动文件
- tcp工具-hunt 1.5
- CADENCE 封装自动生成器(已破解)
- ADC0808采集电压并且用数码管显示
- IEDScout4.20.txt
- ad5420 c原码
- 建筑设计CAD线型、图层规范
- microsoft calendar control 11.0.5510.0
- 1001 Battle Over Cities - Hard Version.c
- 阿里云考试认证题库ACA阿里云考试.
- PSCAD内外环控制逆变器模型 三相逆变
- C 语言实现湿度传感器SHT30(51代码)
- emgucv 选择图片识别车牌,车牌识别
- pscad 逆变器模型
- udp 多线程实现多客户端并发,并采用
- springboot + mybaties + phoenix + HikariCP 整合
评论
共有 条评论