资源简介
《OSPF协议完全实现》原书源代码的官方修订版,2.0版本

代码片段和文件信息
/* 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. Begins an MD5 operation writing a new context.
*/
void MD5Init (context)
MD5_CTX *context;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6219 2001-05-12 03:56 ospfd_code_2.0\ospfd\linux\linux.C
文件 1832 2001-05-12 03:56 ospfd_code_2.0\ospfd\linux\linux.h
文件 7515 2001-04-04 00:07 ospfd_code_2.0\ospfd\linux\lsa_prn.C
文件 2526 2000-05-10 02:30 ospfd_code_2.0\ospfd\linux\machdep.h
文件 1600 2001-09-27 03:53 ospfd_code_2.0\ospfd\linux\Makefile
文件 14740 2001-11-08 23:49 ospfd_code_2.0\ospfd\linux\ospfd.tcl
文件 43825 2001-06-06 23:16 ospfd_code_2.0\ospfd\linux\ospfd_browser.C
文件 28496 2002-02-15 23:10 ospfd_code_2.0\ospfd\linux\ospfd_linux.C
文件 4716 2001-10-26 23:08 ospfd_code_2.0\ospfd\linux\ospfd_linux.h
文件 19262 2001-03-02 23:43 ospfd_code_2.0\ospfd\linux\ospfd_mon.C
文件 19885 2002-02-15 23:10 ospfd_code_2.0\ospfd\linux\system.C
文件 5899 2000-05-10 02:30 ospfd_code_2.0\ospfd\linux\tcppkt.C
文件 1985 2000-05-10 02:30 ospfd_code_2.0\ospfd\linux\tcppkt.h
文件 1518 2000-05-10 02:30 ospfd_code_2.0\ospfd\ospf_sim\icmp.h
文件 2796 2000-05-10 02:30 ospfd_code_2.0\ospfd\ospf_sim\linux\machdep.h
文件 1832 2001-09-27 03:26 ospfd_code_2.0\ospfd\ospf_sim\linux\Makefile
文件 2001 2000-05-10 02:30 ospfd_code_2.0\ospfd\ospf_sim\linux\sim_linux.C
文件 15317 2001-05-31 22:36 ospfd_code_2.0\ospfd\ospf_sim\mtrace.C
文件 2611 2000-05-10 02:30 ospfd_code_2.0\ospfd\ospf_sim\mtrace.h
文件 26897 2002-02-15 03:36 ospfd_code_2.0\ospfd\ospf_sim\ospfd_sim.C
文件 7174 2002-02-15 03:36 ospfd_code_2.0\ospfd\ospf_sim\ospfd_sim.h
文件 54900 2002-03-09 02:04 ospfd_code_2.0\ospfd\ospf_sim\ospf_sim.tcl
文件 2594 2000-05-10 02:30 ospfd_code_2.0\ospfd\ospf_sim\sample.cfg
文件 37487 2002-03-09 02:25 ospfd_code_2.0\ospfd\ospf_sim\sim.C
文件 4377 2001-05-12 03:24 ospfd_code_2.0\ospfd\ospf_sim\sim.h
文件 5641 2001-06-07 02:20 ospfd_code_2.0\ospfd\ospf_sim\simctl.h
文件 7414 2002-02-15 03:36 ospfd_code_2.0\ospfd\ospf_sim\sim_system.C
文件 2782 2000-05-10 02:30 ospfd_code_2.0\ospfd\ospf_sim\x86\machdep.h
文件 1668 2001-06-02 02:25 ospfd_code_2.0\ospfd\ospf_sim\x86\Makefile
文件 1947 2000-05-10 02:30 ospfd_code_2.0\ospfd\ospf_sim\x86\sim_x86.C
............此处省略90个文件信息
相关资源
- bp神经网络源代码,可直接运行
- 仿知乎界面小程序源代码
- 贪吃蛇源代码.fla
- dotnet 写字板 实验 源代码 不好请要不
- 图像二维小波变换的实现源代码
- 八三编码器设计 VHDL代码 简单,包附
- linux应用层的华容道游戏源代码
- 网上拍卖系统完整源代码
- CSMA/CD等动画演示加源代码
- silicon lab公司的收音IC SI47XX全套开发工
- 合同管理系统的源代码(附数据库)
- 用VC 编写的仿QQ聊天室程序源代码
- STM32F103 串口程序(完整版)
- VPC3_DPV1源代码,Profibus
- PB做的托盘程序(最小化后在左下角显
- 透明加密源码及说明
- 排队机叫号 源代码
- 五子棋C 源代码
- CAD LISP24个源代码
- 二叉树基本操作源代码
- 推箱子及人工智能寻路C 源代码
- opengl轮廓字体源代码
- 冈萨雷斯 数字图像处理 源代码(m文
- 直流伺服电机电路原理图(内附单片
- 哈哈冒险岛登入器源代码
- midi电子琴简单设计(附源代码).ra
- PESQ C源代码
- 画图程序MFC/VC/VC CRectTracker 串行化
- 莱卡 全站仪数据格式转换程序,有源
- HEX到Bin文件源代码
评论
共有 条评论