密码学课程实验AES,ECB,CBC,CFB,OFB4种实现方式

上传者: m0_52634403 | 上传时间: 2022-04-30 13:00:28 | 文件大小: 24.83MB | 文件类型: ZIP
1. 只要求实现块长为 128 位、密钥长为 128 位的 AES,分别实现 ECB、CBC、CFB、OFB 这四种操作模式。每种操作模式都有一组对应的测试数据,以便检查程序的正确性。其中,CFB 操作模式为 32 位 CFB 操作模式,OFB 操作模式为 32 位 OFB 操作模式。 2. 要求以命令行的形式,指定明文文件、密钥文件、初始化向量文件的位置和名称、加密的操作模式以及加密完成后密文文件的位置和名称。加密时先分别从指定的明文文件、密钥文件和初始化向量文件中读取有关信息,然后按指定的操作模式进行加密,最后将密文(用 16 进制表示)写入指定的密文文件。 命令行的具体格式如下: e2aes -p plainfile -k keyfile [-v vifile] -m mode -c cipherfile 参数: -p plainfile 指定明文文件的位置和名称 -k keyfile 指定密钥文件的位置和名称 -v vifile 指定初始化向量文件的位置和名称 -m mode 指定加密的操作模式 -c cipherfile 指定密文文件的位置和名称。

文件下载

资源详情

[{"title":"( 42 个子文件 24.83MB ) 密码学课程实验AES,ECB,CBC,CFB,OFB4种实现方式","children":[{"title":"AEScode","children":[{"title":"plainfile01.txt <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":"test.cpp <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"cipherfile_OFB.txt <span style='color:#111;'> 12.50MB </span>","children":null,"spread":false},{"title":"plainfile0.txt <span style='color:#111;'> 1.25MB </span>","children":null,"spread":false},{"title":"random.exe <span style='color:#111;'> 159.25KB </span>","children":null,"spread":false},{"title":"random.cpp <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"test.exe <span style='color:#111;'> 149.67KB </span>","children":null,"spread":false},{"title":"keyfile.txt <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"AES1.cpp <span style='color:#111;'> 23.15KB </span>","children":null,"spread":false},{"title":"cipherfile.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"cipherfile_CBC.txt <span style='color:#111;'> 12.50MB </span>","children":null,"spread":false},{"title":"cipherfile_ECB.txt <span style='color:#111;'> 25.02MB </span>","children":null,"spread":false},{"title":"AES1.exe <span style='color:#111;'> 171.92KB </span>","children":null,"spread":false},{"title":"vifile.txt <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"cipherfile_CFB.txt <span style='color:#111;'> 12.50MB </span>","children":null,"spread":false}],"spread":false},{"title":"AES加解密_ECBCBCCFBOFB.docx <span style='color:#111;'> 1.18MB </span>","children":null,"spread":false},{"title":"demo","children":[{"title":"cipher.txt <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"test.cpp <span style='color:#111;'> 262B </span>","children":null,"spread":false},{"title":"process.h.gch <span style='color:#111;'> 1.62MB </span>","children":null,"spread":false},{"title":"结果.png <span style='color:#111;'> 17.07KB </span>","children":null,"spread":false},{"title":"print.h <span style='color:#111;'> 341B </span>","children":null,"spread":false},{"title":"SubBytes.h <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"keyExpansion.h.gch <span style='color:#111;'> 1.75MB </span>","children":null,"spread":false},{"title":"print.h.gch <span style='color:#111;'> 1.49MB </span>","children":null,"spread":false},{"title":"keyExpansion.exe <span style='color:#111;'> 426.67KB </span>","children":null,"spread":false},{"title":"keyExpansion.h <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"test.exe <span style='color:#111;'> 154.87KB </span>","children":null,"spread":false},{"title":"key.txt <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"main.exe <span style='color:#111;'> 173.98KB </span>","children":null,"spread":false},{"title":"ShiftRows.h <span style='color:#111;'> 426B </span>","children":null,"spread":false},{"title":"note.txt <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"process.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"compress.h.gch <span style='color:#111;'> 1.49MB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"MixColumns.h <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"SubBytes.h.gch <span style='color:#111;'> 1.50MB </span>","children":null,"spread":false},{"title":"ShiftRows.h.gch <span style='color:#111;'> 1.49MB </span>","children":null,"spread":false},{"title":"MixColumns.exe <span style='color:#111;'> 130.71KB </span>","children":null,"spread":false},{"title":"message.txt <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"MixColumns.h.gch <span style='color:#111;'> 1.74MB </span>","children":null,"spread":false}],"spread":false},{"title":"《应用密码学》课程实践3:AES算法的实现.docx <span style='color:#111;'> 18.31KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 536B </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明