Function evilaes::aes_256_encrypt[][src]

#[must_use]
pub fn aes_256_encrypt(input: &[u8], key: [u8; 32]) -> Vec<u8>
Expand description

Encrypts using AES-256

Encrypts input using key and returns the cipher text. If not a whole number of 16-byte blocks are supplied the last, not-complete block will be discarded. This behavior might be subject to change.

Note: The function takes ownership of the key and overrites it with zeros only on a best effort basis, and I’m not a cryptographer so this is probably insecure, do not rely on it being safe! Moreover there are probably countless futher issues.