feat: 完善AES加密实现和多个问题的解决方案
- 在common库中添加了完整的AES-128加密解密实现 - 实现了AES-ECB和AES-CBC模式的加密解密函数 - 添加了密钥扩展和所有必要的AES操作函数 - 完成了问题10的AES-CBC模式实现 - 修复了问题11的加密oracle实现,使用正确的ECB检测 - 改进了代码风格,使用现代Rust格式化语法 - 为多个问题添加了common库的依赖 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
for i in 0..=(plaintext.iter().len() - window_size) {
|
||||
if let Ok(text) = std::str::from_utf8(&plaintext[i..i + window_size]) {
|
||||
if is_valid_english(text, None) {
|
||||
println!("Found valid sentence with key {key}: {}", text);
|
||||
println!("Found valid sentence with key {key}: {text}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user