(shellcode: &[u8], key: &[u8; 32], iv: &[u8; 16])
| 4 | use std::path::Path; |
| 5 | |
| 6 | fn aes_256_encrypt(shellcode: &[u8], key: &[u8; 32], iv: &[u8; 16]) -> Vec<u8> { |
| 7 | let cipher = Cipher::new_256(key); |
| 8 | cipher.cbc_encrypt(iv, shellcode) |
| 9 | } |
| 10 | |
| 11 | pub fn encrypt_aes( |
| 12 | input_path: &Path, |
no outgoing calls