密码学作业——C++实现AES
- Write codes to implement the extended Euclid algorithm to determine the inverse of a given integer.
- Implement the AES algorithm, and submmit the codes and a report to introduce your program by using some test cases.
运行截图
在线验证http://tool.chacuo.net/cryptaes
完整代码
实验环境:VS2010
已知bug:输入**长度不足16个字符(128位)时,加密结果不正确,是由于没有对**不足部分进行填充导致
另外,跟上一个实验一样,new之后没有delete,所以会有内存泄漏(C#写习惯了)