pub struct VerityDescriptor {
pub version: u8,
pub hash_algorithm: u8,
pub log_blocksize: u8,
pub salt_size: u8,
pub data_size: u64,
}Expand description
The fs-verity parameters of a sealed file, from its fsverity_descriptor.
Fields§
§version: u8The format version of the descriptor, which the kernel sets to 1.
hash_algorithm: u8The identifier of the hash algorithm, 1 for SHA-256.
log_blocksize: u8The base-2 logarithm of the Merkle-tree block size, 12 for 4096 bytes.
salt_size: u8The length of the salt in bytes, 0 if the file has no salt.
data_size: u64The size of the file data in bytes at the time of the seal.
Trait Implementations§
Source§impl Clone for VerityDescriptor
impl Clone for VerityDescriptor
impl Copy for VerityDescriptor
Source§impl Debug for VerityDescriptor
impl Debug for VerityDescriptor
impl Eq for VerityDescriptor
Source§impl PartialEq for VerityDescriptor
impl PartialEq for VerityDescriptor
impl StructuralPartialEq for VerityDescriptor
Auto Trait Implementations§
impl Forget for VerityDescriptor
impl Freeze for VerityDescriptor
impl Move for VerityDescriptor
impl RefUnwindSafe for VerityDescriptor
impl Send for VerityDescriptor
impl Sync for VerityDescriptor
impl Unpin for VerityDescriptor
impl UnsafeUnpin for VerityDescriptor
impl UnwindSafe for VerityDescriptor
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