check for luks2
This commit is contained in:
parent
36dc36d454
commit
85e4a30420
@ -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| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user