资源简介
DES加密算法VC源码,只包含了一个源文件,自己在VC 中建工程即可编译,代码中有详细的注释,适于学习
代码片段和文件信息
#include
#include “stdafx.h“
#include
unsigned __int64 MAP[65] key[17]={0} ;
int IP[8][8]={
{585042342618102}
{605244362820124}
{625446383022146}
{645648403224168}
{57494133251791}
{595143352719113}
{615345372921135}
{635547393123157}
};
int PC1[8][7]={
{5749413325179}
{1585042342618}
{1025951433527}
{1911360524436}
{63554739312315}
{7625446383022}
{1466153453729}
{211352820124}
};
int TR[16]={1122222212222221};
int PC2[8][6]={
{1417112415}
{3281562110}
{2319124268}
{1672720132}
{415231374755}
{304051453348}
{444939563453}
{464250362932}
};
int E[8][6]={
{3212345}
{456789}
{8910111213}
{121314151617}
{161718192021}
{202122232425}
{242526272829}
{28293031321}
};
int S[8][4][16]={
{
{1441312151183106125907}
{0157414213110612119538}
{4114813621115129731050}
{1512824917511314100613}
}
{
{1518146113497213120510}
{3134715281412011069115}
{0147111041315812693215}
{1381013154211671205149}
}
{
{1009146315511312711428}
{1370934610285141211151}
{1364981530111212510147}
{1101306987415143115212}
}
{
{7131430691012851112415}
{1381156150347212110149}
{1069012117131513145284}
{3150610113894511127214}
}
{
{2124171011685315130149}
{1411212471315015103986}
{4211110137815912563014}
{1181271142136150910453}
}
{
{1211015926801334147511}
{1015427129561131401138}
{9141552812370410113116}
{4321295151011141760813}
}
{
{4112141508133129751061}
{1301174911014351221586}
{1411131237141015680592}
{6111381410795015142312}
}
{
{1328461511110931450127}
{1151381037412561101492}
{7114191214206101315358}
{2114741081315129035611}
}
};
int P[8][4]={
{1672021}
{29122817}
{1152326}
{5183110}
{282414}
{322739}
{1913306}
{2211425}
};
int IP_1[8][8]={
{408481656246432}
{397471555236331}
{386461454226230}
{375451353216129}
{364441252206028}
{3
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10128 2010-03-26 16:32 Mainf.cpp
----------- --------- ---------- ----- ----
10128 1
- 上一篇:运行c/c++程序时缺少mex.h
- 下一篇:ais数据解码
评论
共有 条评论