Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(repo_key: &[u8], path: &str, encrypted: &[u8]) -> Result<Vec<u8>>
Expand description

Decrypt encrypted content for a given file path.

ยงErrors

Returns an error if the header is invalid, the algorithm is unsupported, or decryption fails (wrong key or tampered ciphertext).