Function encrypt

Source
fn encrypt(
    data: &[u8],
    config: &CipherConfig,
) -> Result<Box<[u8]>, CryptographyError>