pub enum FscryptMode {
Standard,
InoLblk64,
InoLblk32,
}Expand description
Policy mode derived from fscrypt_policy_v2 flags on FS_IOC_SET_ENCRYPTION_POLICY.
Variants§
Standard
Default v2 policy (flags has neither IV_INO_LBLK_64 nor IV_INO_LBLK_32):
uses per-file wrapped keys (WrappedKey::Fxfs / FxfsCipher) for files.
InoLblk64
FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: shared hardware keyslot with 64-bit
(ino << 32) | lblk_num DUNs and HKDF_CONTEXT_IV_INO_LBLK_64_KEY (4).
InoLblk32
FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: shared hardware keyslot with 32-bit
(SipHash(ino) + lblk_num) as u32 DUNs and HKDF_CONTEXT_IV_INO_LBLK_32_KEY (6).
Implementations§
Source§impl FscryptMode
impl FscryptMode
pub fn from_flags(flags: FscryptPolicyFlags) -> Self
Trait Implementations§
Source§impl Clone for FscryptMode
impl Clone for FscryptMode
impl Copy for FscryptMode
Source§impl Debug for FscryptMode
impl Debug for FscryptMode
Source§impl Default for FscryptMode
impl Default for FscryptMode
impl Eq for FscryptMode
Source§impl PartialEq for FscryptMode
impl PartialEq for FscryptMode
impl StructuralPartialEq for FscryptMode
Auto Trait Implementations§
impl Freeze for FscryptMode
impl RefUnwindSafe for FscryptMode
impl Send for FscryptMode
impl Sync for FscryptMode
impl Unpin for FscryptMode
impl UnsafeUnpin for FscryptMode
impl UnwindSafe for FscryptMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more