pub fn decrypt_with_key(key: &[u8], data: &[u8]) -> Result<Vec<u8>>
Decrypts data using a secret key.