shadow_crypt_shell/decryption/
file.rs

1use std::path::PathBuf;
2
3use crate::memory::SecureString;
4
5#[derive(Debug, Clone, PartialEq, Eq)]
6pub struct DecryptionInputFile {
7    pub path: PathBuf,
8    pub filename: String,
9    pub size: u64,
10}
11
12pub struct DecryptionInput {
13    pub files: Vec<DecryptionInputFile>,
14    pub password: SecureString,
15    pub output_dir: PathBuf,
16}
17impl DecryptionInput {
18    pub fn new(
19        files: Vec<DecryptionInputFile>,
20        password: SecureString,
21        output_dir: PathBuf,
22    ) -> Self {
23        Self {
24            files,
25            password,
26            output_dir,
27        }
28    }
29}
30
31pub struct DecryptionOutputFile {
32    pub path: PathBuf,
33    pub filename: String,
34}