第6章 分组密码的工作模式.ppt
《第6章 分组密码的工作模式.ppt》由会员分享,可在线阅读,更多相关《第6章 分组密码的工作模式.ppt(32页珍藏版)》请在麦多课文档分享上搜索。
1、第6章 分组密码的工作模式,Multiple Encryption & 3DES,clear a replacement for DES was needed theoretical attacks that can break it demonstrated exhaustive key search attacks AES is a new cipher alternative prior to this alternative was to use multiple encryption with DES implementations Triple DES (3DES) is the
2、chosen form,Why not Double-DES?,could use 2 DES encrypts on each block C = E(K2, E(K1, P) P = D(K1, D(K2, C) issue of reduction to single stage(约化为单次加密), and have “meet-in-the-middle” attack works whenever use a cipher twice since X = E(K1, P) = D(K2, C), attack by encrypting P with all keys and sto
3、re, then decrypt C with keys and match X value can show takes O(256) steps Require know ,Triple-DES with Two-Keys,hence must use 3 encryptions would seem to need 3 distinct keys but can use 2 keys with E-D-E sequence C = EK1(DK2(EK1(P) nb encrypt & decrypt equivalent in security if K1=K2 then can wo
4、rk with single DES standardized in ANSI X9.17 & ISO8732 no current known practical attacks O(2112) 穷举攻击 / 1052 差分密码分析,Triple-DES with Three-Keys,although are no practical attacks on two-key Triple-DES have some indications can use Triple-DES with Three-Keys to avoid even these C = EK3(DK2(EK1(P) has
5、 been adopted by some Internet applications, eg PGP, S/MIME,Modes of Operation,block ciphers encrypt fixed size blocks eg. DES encrypts 64-bit blocks with 56-bit key need some way to en/decrypt arbitrary amounts of data in practise NIST (SP800-38A) Modes of Use defines 5 possible modes defined for A
6、ES & DES have block and stream modes to cover a wide variety of applications can be used with any block cipher,Electronic Codebook Book (ECB),message is broken into independent blocks which are encrypted each block is a value which is substituted, like a codebook, hence name each block is encoded in
7、dependently of the other blocks Ci = DESK1(Pi) uses: secure transmission of single values,Electronic Codebook Book (ECB),Advantages and Limitations of ECB,message repetitions may show in ciphertext if aligned with message block particularly with data such graphics or with messages that change very l
8、ittle, which become a code-book analysis problem weakness is due to the encrypted message blocks being independent main use is sending a few blocks of data,Cipher Block Chaining (CBC),message is broken into blocks linked together in encryption operation each previous cipher blocks is chained with cu
9、rrent plaintext block, hence name use Initial Vector (IV) to start process Ci = DESK1(Pi XOR Ci-1) C-1 = IV uses: bulk data encryption, authentication,Cipher Block Chaining (CBC),Message Padding,at end of message must handle a possible last short block which is not as large as blocksize of cipher, p
10、ad either with known non-data value (eg nulls), or pad last block along with count of pad size eg. b1 b2 b3 0 0 0 0 5, means have 3 data bytes, then 5 bytes pad+count this may require an extra entire block over those in message there are other, more esoteric modes, which avoid the need for an extra
11、block,Ciphertext Stealing,Use to make ciphertext length same as plaintext length Requires more than one block of plaintext,Pn-1,En-1,Pn,En-1,Pn,Head n,T,T,Head n,Advantages and Limitations of CBC,a ciphertext block depends on all blocks before it, any change to a block affects all following cipherte
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 分组 密码 工作 模式 PPT
