Function threema_gateway::encrypt_file_data[][src]

pub fn encrypt_file_data(
    file_data: &[u8],
    thumb_data: Option<&[u8]>
) -> (Vec<u8>, Option<Vec<u8>>, Key)

Encrypt file data and an optional thumbnail using a randomly generated symmetric key.

Return the encrypted bytes and the key.