pub struct HookGeometry {
pub partition_guid: Guid,
pub offset_sector: u64,
pub encrypted_offset: EncryptedOffset,
}Expand description
Geometry the Block IO decrypt hook needs to map an absolute LBA to a data-region-relative sector and decide whether it is ciphertext. The cipher itself is supplied separately (the sample builds it), so no key material lives here.
Fields§
§partition_guid: GuidGPT unique partition GUID of the volume whose Block IO is hooked.
offset_sector: u64Absolute starting LBA of the data (encryption target) region. The hooked
read computes rel = lba - offset_sector from this value.
encrypted_offset: EncryptedOffsetProgressive-encryption boundary and total data-region sector count.
Auto Trait Implementations§
impl Freeze for HookGeometry
impl RefUnwindSafe for HookGeometry
impl Send for HookGeometry
impl Sync for HookGeometry
impl Unpin for HookGeometry
impl UnsafeUnpin for HookGeometry
impl UnwindSafe for HookGeometry
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