pub enum PasswordCheck {
Sample,
Headers,
WholeUnit,
}Expand description
How the password of an encrypted archive is proven before anything is touched.
Variants§
Sample
Decode the start of the smallest encrypted unit: a wrong password fails at once, or within the first blocks.
Headers
The headers hold a check value for the password, so
Format::prove_password answers without decoding anything.
WholeUnit
Only the checksum at the end of a file can tell, so the smallest encrypted unit is decoded whole, writing nothing.
Trait Implementations§
Source§impl Clone for PasswordCheck
impl Clone for PasswordCheck
impl Copy for PasswordCheck
Source§impl Debug for PasswordCheck
impl Debug for PasswordCheck
impl Eq for PasswordCheck
Source§impl PartialEq for PasswordCheck
impl PartialEq for PasswordCheck
impl StructuralPartialEq for PasswordCheck
Auto Trait Implementations§
impl Forget for PasswordCheck
impl Freeze for PasswordCheck
impl RefUnwindSafe for PasswordCheck
impl Send for PasswordCheck
impl Sync for PasswordCheck
impl Unpin for PasswordCheck
impl UnsafeUnpin for PasswordCheck
impl UnwindSafe for PasswordCheck
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more