加入收藏 | 设为首页 | RSS
您当前的位置:首页 > 建站教程 > 网页技巧

如何实现 DES 算法(全)

时间:2012-04-30 13:14:40  来源:  作者:虾谷
should be padded as appropriate for the application. 
;获取一个64位的数据块。如果数据块不到64位,就补足64位。 
# 可能是用0补吧。 

2.2 Perform the following permutation on the data block. 
;对数据块进行如下置换。 
# 又是分成两部分进行,先是偶数位。 
# 比较简单,算式就不写了。 

Initial Permutation (IP) 

58 50 42 34 26 18 10 2 
60 52 44 36 28 20 12 4 
62 54 46 38 30 22 14 6 
64 56 48 40 32 24 16 8 
57 49 41 33 25 17 9 1 
59 51 43 35 27 19 11 3 
61 53 45 37 29 21 13 5 
63 55 47 39 31 23 15 7 

2.3 Split the block into two halves. The first 32 bits are called L[0], 
and the last 32 bits are called R[0]. 

来顶一下
返回首页
返回首页
推荐资讯
10步征服web2.0链轮第四步,决定链轮模式
10步征服web2.0链轮第
10步征服web2.0链轮第三步,消除“电子足迹”
10步征服web2.0链轮第
10步征服web2.0链轮第一步,理解链轮的概念
10步征服web2.0链轮第
小贺店铺
小贺店铺
相关文章
    无相关信息
栏目更新
栏目热门