pub struct ReplicaCtx<'a> { /* private fields */ }Expand description
A single CRC-valid metadata replica handed to MetadataCodec::unseal.
Exposes the parsed plaintext header, the raw 512-byte block (and the inner encrypted blob / salt / volume id within it), and sector-granular reads of THIS replica’s vendor-specific data region — everything a vendor needs to decide and run its metadata decryption.
Implementations§
Source§impl<'a> ReplicaCtx<'a>
impl<'a> ReplicaCtx<'a>
Sourcepub fn header(&self) -> &JvckHeader
pub fn header(&self) -> &JvckHeader
The parsed plaintext header (same for every replica of a volume).
Sourcepub fn encrypted_metadata(&self) -> &[u8] ⓘ
pub fn encrypted_metadata(&self) -> &[u8] ⓘ
The 128-byte EncryptedMetadata blob within the block.
Sourcepub fn salt(&self) -> &[u8] ⓘ
pub fn salt(&self) -> &[u8] ⓘ
The per-write salt (plaintext) used to derive this replica’s keys.
Sourcepub fn replica_index(&self) -> usize
pub fn replica_index(&self) -> usize
0-based index of this replica (header replicas first, then footer).
Sourcepub fn vendor_data_sector_count(&self) -> u64
pub fn vendor_data_sector_count(&self) -> u64
Sectors available in this replica’s vendor-specific data region.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReplicaCtx<'a>
impl<'a> !UnwindSafe for ReplicaCtx<'a>
impl<'a> Freeze for ReplicaCtx<'a>
impl<'a> Send for ReplicaCtx<'a>
impl<'a> Sync for ReplicaCtx<'a>
impl<'a> Unpin for ReplicaCtx<'a>
impl<'a> UnsafeUnpin for ReplicaCtx<'a>
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