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 fields of a file’s fsverity_descriptor that name the parameters
the file was sealed with.
Fields§
§version: u8The descriptor format version. The kernel writes 1.
hash_algorithm: u8The hash-algorithm identifier. SHA-256 is 1.
log_blocksize: u8The base-2 logarithm of the Merkle-tree block size. 4096 bytes is 12.
salt_size: u8The salt length in bytes. Zero when the file has no salt.
data_size: u64The size of the file’s data in bytes when it was sealed.
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 Freeze 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