pub struct VolumeInfo {
pub flavor: Flavor,
pub prf: Prf,
pub ciphers: Vec<Cipher>,
pub version: u16,
pub encrypted_area_start: u64,
pub encrypted_area_size: u64,
}Expand description
The recovered facts about an unlocked volume.
Fields§
§flavor: FlavorVeraCrypt or TrueCrypt.
prf: PrfThe PRF that decrypted the header.
ciphers: Vec<Cipher>The cipher chain in cryptsetup array order (one entry for a single cipher, more for a cascade). Ciphers are applied in reverse of this order.
version: u16Header format version.
encrypted_area_start: u64Byte offset where the encrypted data area begins.
encrypted_area_size: u64Size of the encrypted data area in bytes.
Implementations§
Source§impl VolumeInfo
impl VolumeInfo
Sourcepub fn cipher_display(&self) -> String
pub fn cipher_display(&self) -> String
The cipher chain as a VeraCrypt display string (aes, aes-twofish, …),
i.e. the ciphers in application (decrypt) order — the reverse of the
cryptsetup array order stored in ciphers.
Trait Implementations§
Source§impl Clone for VolumeInfo
impl Clone for VolumeInfo
Source§fn clone(&self) -> VolumeInfo
fn clone(&self) -> VolumeInfo
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 VolumeInfo
impl RefUnwindSafe for VolumeInfo
impl Send for VolumeInfo
impl Sync for VolumeInfo
impl Unpin for VolumeInfo
impl UnsafeUnpin for VolumeInfo
impl UnwindSafe for VolumeInfo
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