pub struct VolumeHeader {
pub variant: BdeVariant,
pub bytes_per_sector: u16,
pub bitlocker_guid: [u8; 16],
pub fve_metadata_offsets: [u64; 3],
}Expand description
The parsed BitLocker volume header.
Fields§
§variant: BdeVariantWhich layout was recognised.
bytes_per_sector: u16Bytes per sector (from the BPB); defaults to 512 when the field is zero.
bitlocker_guid: [u8; 16]The BitLocker identifier GUID (all-zero for the Vista layout, which stores none at a fixed offset).
fve_metadata_offsets: [u64; 3]Byte offsets of the three FVE metadata blocks relative to the volume start. For the Vista layout only the first is derived here (the block header carries all three authoritatively).
Implementations§
Source§impl VolumeHeader
impl VolumeHeader
Sourcepub fn parse(sector: &[u8]) -> Result<VolumeHeader>
pub fn parse(sector: &[u8]) -> Result<VolumeHeader>
Parse the 512-byte volume header sector.
§Errors
Returns BdeError::NotBitLocker (carrying the offending signature bytes)
when neither the -FVE-FS- nor the MSWIN4.1 signature is present.
Trait Implementations§
Source§impl Clone for VolumeHeader
impl Clone for VolumeHeader
Source§fn clone(&self) -> VolumeHeader
fn clone(&self) -> VolumeHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VolumeHeader
impl RefUnwindSafe for VolumeHeader
impl Send for VolumeHeader
impl Sync for VolumeHeader
impl Unpin for VolumeHeader
impl UnsafeUnpin for VolumeHeader
impl UnwindSafe for VolumeHeader
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