pub struct HiddenHeader {
pub hidden_data_offset: u64,
pub hidden_data_size: u64,
/* private fields */
}Expand description
Header for the hidden (secondary) encrypted volume.
Fields§
The offset of the hidden data region.
The size of the hidden data region.
Implementations§
Source§impl HiddenHeader
impl HiddenHeader
Sourcepub const COMPACT_SIZE: usize
pub const COMPACT_SIZE: usize
Compact serialized size.
Sourcepub fn compute_checksum(&self) -> [u8; 32]
pub fn compute_checksum(&self) -> [u8; 32]
Compute checksum.
Sourcepub fn verify_checksum(&self) -> bool
pub fn verify_checksum(&self) -> bool
Verify checksum.
Sourcepub fn to_bytes_compact(&self) -> [u8; 160]
pub fn to_bytes_compact(&self) -> [u8; 160]
Serialize to compact size.
Sourcepub fn from_bytes(bytes: &[u8; 512]) -> Result<Self>
pub fn from_bytes(bytes: &[u8; 512]) -> Result<Self>
Deserialize from full-size bytes.
Sourcepub fn from_bytes_compact(bytes: &[u8]) -> Result<Self>
pub fn from_bytes_compact(bytes: &[u8]) -> Result<Self>
Deserialize from compact-size bytes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for HiddenHeader
impl Freeze for HiddenHeader
impl Move for HiddenHeader
impl RefUnwindSafe for HiddenHeader
impl Send for HiddenHeader
impl Sync for HiddenHeader
impl Unpin for HiddenHeader
impl UnsafeUnpin for HiddenHeader
impl UnwindSafe for HiddenHeader
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