refactored luks operations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-06-22 20:47:19 +00:00
parent 023399bb14
commit 92e413de50
3 changed files with 496 additions and 244 deletions

View File

@@ -75,6 +75,12 @@ impl LuksError {
}
}
impl From<LuksError> for Fido2LuksError {
fn from(e: LuksError) -> Self {
Fido2LuksError::LuksError { cause: e }
}
}
use libcryptsetup_rs::LibcryptErr;
use std::io::ErrorKind;
use std::string::FromUtf8Error;