文件名称:des_test_ecb_cbc.tar

  • 所属分类:
  • 加密解密
  • 资源属性:
  • [Linux] [C/C++] [源码]
  • 上传时间:
  • 2016-01-14
  • 文件大小:
  • 6kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 晨*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

ECB模式,CBC模式DES加解密。

1.CBC模式与一般的不一样,当密文的数据发生错误时,解密后错误字节块和后续所有块的所有字节都是错误的。而一般模式只会影响当前块和后续块的相应字节。



2.可以加密任意长度的数据文件,最后的块数据不足8bytes,不是简单的补0。补0的缺陷是当明文块尾数据为0时,在解密时就不知如何处理了。



3.编译命令:

1. 编译测试程序 make test.

2. 编译动态库 make libdes.so

3. 编译静态库 make libdes.a-ECB mode, CBC mode DES encryption and decryption.

1.CBC mode and the general not the same, when the ciphertext data error occurs, the decrypted error byte block and all subsequent blocks all bytes are wrong. The general pattern affects only the current block and the corresponding byte subsequent blocks.



2. You can encrypt the data files of any length, the last block to insufficient data 8bytes, not simply fill 0. Fill zeros when plaintext block end data is 0, when I do not know how to handle the decryption.



3. Compile command:

1. Compile the test program make test.

2. Compile the DLL make libdes.so

3. Compile the static library make libdes.a
(系统自动生成,下载前可以参看下载内容)

下载文件列表





9927441des_test_ecb_cbc.tar

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org