Skip to main content

decrypt_tree

Function decrypt_tree 

Source
pub fn decrypt_tree(
    enc_root: &Path,
    out_parent: &Path,
    keks: &[Kek],
    vault_salt: &[u8; 16],
    cipher: CipherId,
    progress: Option<ProgressFn<'_>>,
) -> Result<TreeReport>
Expand description

还原一棵加密目录树。

enc_root 是密文根目录,out_parent 是还原目标的父目录。

§Errors

  • enc_root 不是目录,或名字不像密文目录名
  • 目录名解密失败(密码不对)
  • 写盘失败