pub enum Prf {
Sha512,
Sha256,
Whirlpool,
Streebog,
Ripemd160,
}Expand description
A VeraCrypt header PRF (the PBKDF2 hash), with its non-system iteration count.
Variants§
Sha512
SHA-512 (500000 iterations).
Sha256
SHA-256 (500000 iterations).
Whirlpool
Whirlpool (500000 iterations).
Streebog
Streebog-512 (500000 iterations).
Ripemd160
RIPEMD-160 (655331 iterations, TrueCrypt-compatible).
Implementations§
Source§impl Prf
impl Prf
Sourcepub fn iterations(self) -> u32
pub fn iterations(self) -> u32
Non-system, no-PIM iteration count.
Sourcepub fn iterations_pim(self, pim: u32) -> u32
pub fn iterations_pim(self, pim: u32) -> u32
Iterations for an explicit PIM (personal iterations multiplier). PIM 0 uses
the default. For SHA-family/Whirlpool/Streebog: 15000 + PIM*1000;
RIPEMD-160: PIM*2048 — matching VeraCrypt’s non-system formula.
Trait Implementations§
impl Copy for Prf
impl Eq for Prf
impl StructuralPartialEq for Prf
Auto Trait Implementations§
impl Freeze for Prf
impl RefUnwindSafe for Prf
impl Send for Prf
impl Sync for Prf
impl Unpin for Prf
impl UnsafeUnpin for Prf
impl UnwindSafe for Prf
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