des算法实现过程分析.doc
约8页DOC格式手机打开展开
des算法实现过程分析,des算法实现过程分析页数:8字数:2305des算法实现过程分析1.????处理密钥:1.1??从用户处获得64位密钥.(每第8位为校验位,为使密钥有正确的奇偶校验,每个密钥要有奇 ?????数个”1”位.(本文如未特指,均指二进制位)1.2????具体过程:1.2.1????对密钥实施变换,使得变换以后的密钥...
内容介绍
此文档由会员 cnlula 发布
DES算法实现过程分析
页数:8 字数:2305
DES算法实现过程分析
1.????处理密钥:1.1??从用户处获得64位密钥.(每第8位为校验位,为使密钥有正确的奇偶校验,每个密钥要有奇 ?????数个”1”位.(本文如未特指,均指二进制位)1.2????具体过程:1.2.1????对密钥实施变换,使得变换以后的密钥的各个位与原密钥位对应关系如下表所示:?????????表一为忽略校验位以后情况1??????2?????3?????4?????5?????6?????7?????8?????9????10????11????12????13????14????15????16????17????18????19????20????21????22????23????24????25????26????27????2857????49????41????33????25????17?????9?????1????58????50????42????34????26????18????10?????2????59????51????43????35????27????19????11?????3????60????52????44????3629????30????31????32????33????34????35????36????37????38????39????40????41????42????43????44????45????46????47????48????49????50????51????52????53????54????55????5663????55????47????39????31????23????15?????7????62????54????46????38????30????22????14?????6????61????53????45????37????29????21????13?????5????28????20????12?????41.2.2??把变换后的密钥等分成两部分,前28位记为C[0], 后28位记为D[0].1.2.3??计算子密钥(共16个), 从i=1开始。1.2.3.1 分别对C[i-1],D[i-1]作循环左移来生成C[i],D[i].(共16次)。每次循环左移位数????????如下表所示:循环次数????1????2????3????4????5????6????7????8????9????10????11????12????13????14????15????16左移位数????1????1????2????2????2????2????2????2????1?????2?????2?
页数:8 字数:2305
DES算法实现过程分析
1.????处理密钥:1.1??从用户处获得64位密钥.(每第8位为校验位,为使密钥有正确的奇偶校验,每个密钥要有奇 ?????数个”1”位.(本文如未特指,均指二进制位)1.2????具体过程:1.2.1????对密钥实施变换,使得变换以后的密钥的各个位与原密钥位对应关系如下表所示:?????????表一为忽略校验位以后情况1??????2?????3?????4?????5?????6?????7?????8?????9????10????11????12????13????14????15????16????17????18????19????20????21????22????23????24????25????26????27????2857????49????41????33????25????17?????9?????1????58????50????42????34????26????18????10?????2????59????51????43????35????27????19????11?????3????60????52????44????3629????30????31????32????33????34????35????36????37????38????39????40????41????42????43????44????45????46????47????48????49????50????51????52????53????54????55????5663????55????47????39????31????23????15?????7????62????54????46????38????30????22????14?????6????61????53????45????37????29????21????13?????5????28????20????12?????41.2.2??把变换后的密钥等分成两部分,前28位记为C[0], 后28位记为D[0].1.2.3??计算子密钥(共16个), 从i=1开始。1.2.3.1 分别对C[i-1],D[i-1]作循环左移来生成C[i],D[i].(共16次)。每次循环左移位数????????如下表所示:循环次数????1????2????3????4????5????6????7????8????9????10????11????12????13????14????15????16左移位数????1????1????2????2????2????2????2????2????1?????2?????2?