pub fn decrypt_snapshot(input: &mut File, output: &mut Vec<u8>, password: &[u8]) -> crate::Result<()> {
    // check to see if the file is long enough
    check_file_len(input)?;

    // setup signature, salt and version buffers.
    let salt = get_salt(input, true)?;

    decrypt_file(input, output, password, salt)?;

    Ok(())
}
/// decrypt file into a vector with a password.
decrypt file into a vector with a password.
decrypt file into a vector with a password .
pub fn decrypt_snapshot(input: &mut File, output: &mut Vec<u8>, password: &[u8]) -> crate::Result<()> {
    // check to see if the file is long enough
    check_file_len(input)?;
    // setup signature, salt and version buffers.
    let salt = get_salt(input, true)?;
    decrypt_file(input, output, password, salt)?;
    Ok(())
}
pub fn decrypt_snapshot ( input : & mut File , output : & mut Vec < u8 > , password : & [ u8 ] ) -> crate :: Result < ( ) > { // check to see if the file is long enough check_file_len ( input ) ? ; // setup signature, salt and version buffers. let salt = get_salt ( input , true ) ? ; decrypt_file ( input , output , password , salt ) ? ; Ok ( ( ) ) }
decrypt file into a vector with a password.
decrypt file into a vector with a password .
input
&mut File
output
&mut Vec<u8>
password
&[u8]