decrypt

Function decrypt 

Source
pub fn decrypt(data: &[u8], key: &[u8]) -> Result<Vec<u8>, DecryptionError>
Expand description

Decrypts data

Parameters:

  • data - The data to decrypt
  • key - The decryption key

Returns the decrypted bytes, or an error