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

如何实现 DES 算法(全)

时间:2012-04-30 13:14:40  来源:  作者:虾谷
2.4.3 Break E(R[i-1]) xor K[i] into eight 6-bit blocks. Bits 1-6 are 
B[1], bits 7-12 are B[2], and so on with bits 43-48 being B[8]. 
;将上一步的操作结果分成8块,每块6位,命名为B[1]到B[8]。 


2.4.4 Substitute the values found in the S-boxes for all B[j]. Start 
with j = 1. All values in the S-boxes should be considered 4 bits wide. 
;把所有的B[j]在S框中进行置换,S框中所有的值的宽(长)度应是4位。 
# 不懂!!! :( 

2.4.4.1 Take the 1st and 6th bits of B[j] together as a 2-bit value 
(call it m) indicating the row in S[j] to look in for the substitution. 
;把B[j]中的第一位和第六位命名为m,表示S[j]在置换时的行。 

2.4.4.2 Take the 2nd through 5th bits of B[j] together as a 4-bit 
value (call it n) indicating the column in S[j] to find the substitution. 
;把B[j]二到五位命名为n,表示S[j]在置换时的列。 

2.4.4.3 Replace B[j] with S[j][m][n]. 
;用S[j][m][n]置换B[j]。 

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