资源简介
OSPF的算法实现,linux下基于C语言,可是深入研究网络的数据结构
![](http://www.nz998.com/pic/40444.jpg)
代码片段和文件信息
/* 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2205 1999-01-04 08:50 ospfd\ospfd\src\arch.h
文件 6783 1999-08-11 00:21 ospfd\ospfd\src\asbrlsa.C
文件 20956 2000-01-06 00:43 ospfd\ospfd\src\asexlsa.C
文件 13008 1999-10-13 01:08 ospfd\ospfd\src\avl.C
文件 4601 1999-10-13 01:05 ospfd\ospfd\src\avl.h
文件 2887 1999-08-06 00:01 ospfd\ospfd\src\cksum.C
文件 2120 1999-01-15 10:53 ospfd\ospfd\src\config.C
文件 6255 1999-09-17 05:24 ospfd\ospfd\src\config.h
文件 11292 1999-11-26 10:43 ospfd\ospfd\src\dbage.C
文件 2340 1999-01-06 07:02 ospfd\ospfd\src\dbage.h
文件 1144 1999-01-04 03:49 ospfd\ospfd\src\globals.h
文件 6527 1999-11-18 06:55 ospfd\ospfd\src\grplsa.C
文件 5310 1999-09-17 10:34 ospfd\ospfd\src\hostmode.C
文件 10567 1999-10-23 04:33 ospfd\ospfd\src\ifcfsm.C
文件 2888 1999-01-05 05:24 ospfd\ospfd\src\ifcfsm.h
文件 1624 1999-10-23 01:30 ospfd\ospfd\src\igmp.h
文件 1779 1999-10-18 22:47 ospfd\ospfd\src\ip.h
文件 3534 1999-01-05 10:33 ospfd\ospfd\src\iterator.h
文件 5570 1999-11-06 05:16 ospfd\ospfd\src\lsa.C
文件 10935 1999-11-06 05:01 ospfd\ospfd\src\lsa.h
文件 4114 1999-06-20 06:18 ospfd\ospfd\src\lsalist.C
文件 5368 1999-06-20 06:06 ospfd\ospfd\src\lsalist.h
文件 11645 1999-09-18 03:12 ospfd\ospfd\src\lsdb.C
文件 5405 1999-08-05 23:48 ospfd\ospfd\src\lshdr.h
文件 2069 1999-12-10 02:47 ospfd\ospfd\src\mcache.h
文件 16748 1999-12-17 04:56 ospfd\ospfd\src\monitor.C
文件 6078 1999-12-17 04:43 ospfd\ospfd\src\monitor.h
文件 19220 1999-12-12 07:31 ospfd\ospfd\src\mospf.C
文件 1057 1999-11-26 11:08 ospfd\ospfd\src\mospf.h
文件 13724 1999-10-23 04:37 ospfd\ospfd\src\nbrfsm.C
............此处省略83个文件信息
- 上一篇:VC 6.0快速修改工程名工具
- 下一篇:Huffman 编码
相关资源
- LINUX下命令行界面的C语言细胞游戏
- 尚观培训linux许巍老师关于c语言的课
- 《Linux程序设计》第四版pdf高清电子版
- linux 0.11内核代码
- linux ac108多麦方案驱动(ac108.c)
- 共享内存 读写
- 简易web服务器的设计与实现
- 《LINUX C编程从初学到精通》光盘源码
- Linux那些事儿之我是USB core
- Linux c语言 学生成绩管理系统
- Linux开发工具手册
- Linux操作系统下C语言编程从零开始
- 基于Linux下C语言开发的员工管理系统
- 超级玛丽c++源码win32Linux平台
- UNIX/LINUX下C语言中文短信UCS2编码和解
- 嵌入式工程师必知必会 (完整高清中
- linux-2.6.24.rar
- Linux下C语言操作静态ARP表,包括增加
- c语言 linux 贪吃蛇.doc
- Linux多线程服务端编程:使用muduo C+
- libstdc++.so.6.0.23_linux7
- libstdc++-devel-4.1.2-48.el5.x86_64
- C++版仿Linux文件管理系统
- 基于SDL的贪吃蛇游戏
- 链表栈的基本操作(C语言
- 基于linux C/C++和Qt的聊天程序
- Linux+gladeGTK++C语言+mysql的模仿QQ聊天工
- 嵌入式linuxC语言程序设计基础教程
- C Programming in Linux Linux下C语言
- Linux软件工程师(C语言)实用教程_
评论
共有 条评论