refactor luks code #1

Merged
shimun merged 11 commits from luks_refr into master 2020-06-22 22:47:21 +02:00
Showing only changes of commit 85e4a30420 - Show all commits

View File

@ -38,6 +38,9 @@ impl LuksDevice {
&'a mut self,
) -> Fido2LuksResult<Box<dyn Iterator<Item = Fido2LuksResult<(u32, Fido2LuksToken)>> + 'a>>
{
if !self.is_luks2()? {
return Err(LuksError::Luks2Required.into());
}
Ok(Box::new(
(0..32)
.map(move |i| {