The Ansewer of Problem 4.7
来源:互联网 发布:两张表格数据对比 编辑:程序博客网 时间:2024/06/05 14:16
DES算法加密过程:
Ri+1=Li
Li+1=Li⊕F(Ri,Ki)
Ri+1=Li
Li+1=Li⊕F(Ri,Ki)
经过16轮次后,得到L16和R16,将其置换得到R16L16,输出密文。
在解密过程中,将Ri+1,Li+1代入上述式得:
Ri-1=Li
Li+1⊕F(Ri,Ki)=Li⊕F(Ri,Ki)⊕F(Li+1,Ki)=Li⊕F(Ri,Ki)⊕F(Ri,Ki)=Li
代入后左右两边得到的结果是加密过程之中的上一轮的左右部分
在解密过程中,将Ri+1,Li+1代入上述式得:
Ri-1=Li
Li+1⊕F(Ri,Ki)=Li⊕F(Ri,Ki)⊕F(Li+1,Ki)=Li⊕F(Ri,Ki)⊕F(Ri,Ki)=Li
代入后左右两边得到的结果是加密过程之中的上一轮的左右部分
经过16轮次后,得到R0和L0,将其置换得到L0R0,输出密文。
DES算法的加密与解密其实逻辑相同,只是加密与解密密钥的顺序互逆
因此DES的解密算法是加密算法的逆运算
因此DES的解密算法是加密算法的逆运算
阅读全文
0 0
- The Ansewer of Problem 4.7
- The problem of UDP
- The problem of Titanium
- The problem of UDP
- Root of the Problem
- 1394. Root of the Problem
- The problem of Memory Leak
- TJU Root of the Problem
- The problem of Money Changes
- POJ_3100_Root of the Problem(暴力)
- Root of the Problem-3100
- The problem of Zigzag pattern
- 1394. Root of the Problem
- the solve of volume problem
- Resove the problem of @INC of perl.
- The Recode of the sat-problem
- The problem of deleting the remote branch
- POJ 3100 Root of the Problem
- 开发常用网址
- poj 1410 Intersection(判断线段是否与实心矩形相交)
- python学习之turtledemo
- Bootstrap微章
- OpenCV编译安装配置总结
- The Ansewer of Problem 4.7
- HDU
- Python中列表的拷贝问题
- HttpServlet介绍
- ubuntu maas 对物理服务器资源进行云化管理
- 数据可视化神器Tableau学习小结3——函数及应用
- 长短连接与长短轮询
- 【转载】Python中 sys.argv[]的用法简明解释
- HASH