pub struct VeraVolume;Expand description
Namespace for opening a VeraCrypt volume.
Implementations§
Source§impl VeraVolume
impl VeraVolume
Sourcepub fn unlock_with_password<R: Read + Seek>(
reader: R,
password: &[u8],
) -> Result<DecryptedVolume<R>>
pub fn unlock_with_password<R: Read + Seek>( reader: R, password: &[u8], ) -> Result<DecryptedVolume<R>>
Unlock a VeraCrypt/TrueCrypt volume with password (no PIM).
§Errors
VeraError::TooSmall if the container is under 512 bytes, or
VeraError::AuthenticationFailed if no PRF/cipher yields a valid header.
Sourcepub fn unlock_with_pim<R: Read + Seek>(
reader: R,
password: &[u8],
pim: u32,
) -> Result<DecryptedVolume<R>>
pub fn unlock_with_pim<R: Read + Seek>( reader: R, password: &[u8], pim: u32, ) -> Result<DecryptedVolume<R>>
Unlock with an explicit PIM (personal iterations multiplier; 0 = default).
§Errors
Unlock the HIDDEN volume with password (its header is at 64 KiB). Used to
access — or prove the presence of — a deniable hidden volume.
§Errors
Auto Trait Implementations§
impl Freeze for VeraVolume
impl RefUnwindSafe for VeraVolume
impl Send for VeraVolume
impl Sync for VeraVolume
impl Unpin for VeraVolume
impl UnsafeUnpin for VeraVolume
impl UnwindSafe for VeraVolume
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