资源简介
OSPF的算法实现,linux下基于C语言,可是深入研究网络的数据结构
代码片段和文件信息
/* 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 编码
相关资源
- C语言版本Linux环境下MD5加密函数
- Linux下串口通讯程序C++源代码
- libudt - UDT 传输库 linux c 接口封装
- C++教程网Linux网络编程视频教程
- 基于C语言的linux远程终端管理系统
- 多线程产生Fibonacci序列
- LINUX C++下多个Makefile编写方法
- linux下C语言实现FTP上传文件源码200行
- linux操作系统下C++封装的基础库
- Linux下Shell命令解释步骤程序实现
- 基于socket和opencv在linux中实现摄像头实
- linux下C语言从N模数、E公钥指数、D私
- linux c++ 获取目录下所有文件
- Linux qtcreator下kafka之librdkafka库的C++语
- Linux下用C语言实现ls命令
-
c语言解析xm
l格式代码。 - linux下可用的静态ImageMagick C库
- libstdc++.so.6.0.17和libstdc++.so.6.0.19以及
- C语言https POST提交openSSL的应用可作为
- semtech公司 LoRaWAN协议官方服务器源码
- Linux oracle 11gR2安装说明及依赖包全套
- Linux下C语言实现文件拷贝
- Hands-On System Programming with C++17
- libstdc++-4.8.5-36.el7.x86_64
- compat-libstdc++-33-3.2.3-61.i386.rpm
- Linux核心编程
- linux下C++俄罗斯方块源码免费
- linux下GDB教程
- 简单驱动程序
- Linux优先级时间片调度C++源码
评论
共有 条评论