pub fn decrypt_dirname(
disk_name: &str,
sidecar: Option<&[u8]>,
key: &DirnameKey,
cipher: CipherId,
) -> Result<String>Expand description
解密目录名。
sidecar 是从 DIRNAME_SIDECAR 读到的内容(若该文件存在)。
名字被截断过时必须提供,否则无法还原。
§Errors
Error::MalformedTlv:不是密文目录名、base32 非法、密文过短Error::MalformedTlv:名字被截断但未提供 sidecarError::ContentHashMismatch:AEAD 认证失败(密钥不对或被篡改)