feat: add rand, update decrypt

This commit is contained in:
2023-09-09 17:54:20 +08:00
parent bc55d84978
commit c1dd71abc2
4 changed files with 23 additions and 12 deletions

View File

@@ -33,6 +33,7 @@ pub struct CmdDecrypt {
}
pub fn decrypt(cmd_decrypt: CmdDecrypt) -> XResult<()> {
debugging!("Cmd decrypt: {:?}", cmd_decrypt);
for path in &cmd_decrypt.paths {
match decrypt_single(path, &cmd_decrypt.pin, &cmd_decrypt.slot) {
Ok(_) => success!("Decrypt {} succeed", path.to_str().unwrap_or("N/A")),