MCPcopy Create free account
hub / github.com/Nariod/RustPacker / aes_256_encrypt

Function aes_256_encrypt

src/aes.rs:6–9  ·  view source on GitHub ↗
(shellcode: &[u8], key: &[u8; 32], iv: &[u8; 16])

Source from the content-addressed store, hash-verified

4use std::path::Path;
5
6fn 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
11pub fn encrypt_aes(
12 input_path: &Path,

Callers 2

encrypt_aesFunction · 0.85

Calls

no outgoing calls

Tested by 1