pub fn file_encrypt(plaintext: &[u8]) -> ([u8; 32], [u8; 32], Vec<u8>)Expand description
Encrypt file bytes with a freshly generated AES-256-IGE key and IV.
Returns (key, iv, ciphertext).
Key and IV are both 32 bytes. IGE uses the full 32-byte IV as iv1 || iv2,
the layout ferogram_crypto::aes::ige_encrypt expects. The plaintext is
padded to a multiple of 16 bytes with random bytes before encryption; the
receiver truncates to the size field of the DecryptedMedia TL.