Expand description
§veracrypt-core — pure-Rust VeraCrypt/TrueCrypt reader and decryptor
Brute the volume header’s PRF + cipher from a password, recover the master
key, and decrypt the data area. Panic-free and forbid(unsafe); every crypto
primitive is an audited RustCrypto crate.
use std::fs::File;
let mut vol = veracrypt::VeraVolume::unlock_with_password(
File::open("container.vc")?,
b"passphrase",
)?;
let mut first = [0u8; 512];
vol.read_at(0, &mut first)?;Correctness is validated against cryptsetup --veracrypt on a real VeraCrypt
volume with a published password (Tier-1); see docs/validation.md.
Structs§
- Decrypted
Volume - A plaintext view of an unlocked VeraCrypt data area.
- Vera
Header - The forensically-relevant fields of a decrypted VeraCrypt header.
- Vera
Volume - Namespace for opening a VeraCrypt volume.
- Volume
Info - The recovered facts about an unlocked volume.
Enums§
- Cipher
- A VeraCrypt data cipher (single-cipher; cipher cascades are a future extension). All are 256-bit keys in XTS mode.
- Flavor
- Whether this container is a TrueCrypt (not VeraCrypt) header.
- Prf
- A VeraCrypt header PRF (the PBKDF2 hash), with its non-system iteration count.
- Vera
Error - A VeraCrypt parse or unlock failure.
Type Aliases§
- Result
- Result alias for
veracrypt-core.