[−][src]Enum argon2::Error
Error type for Argon2 errors.
Variants
OutputTooShortThe output (hash) is too short (minimum is 4).
OutputTooLongThe output (hash) is too long (maximum is 2^32 - 1).
PwdTooShortThe password is too short (minimum is 0).
PwdTooLongThe password is too long (maximum is 2^32 - 1).
SaltTooShortThe salt is too short (minimum is 8).
SaltTooLongThe salt is too long (maximum is 2^32 - 1).
AdTooShortThe associated data is too short (minimum is 0).
AdTooLongThe associated data is too long (maximum is 2^32 - 1).
SecretTooShortThe secret value is too short (minimum is 0).
SecretTooLongThe secret value is too long (maximum is 2^32 - 1).
TimeTooSmallThe time cost (passes) is too small (minimum is 1).
TimeTooLargeThe time cost (passes) is too large (maximum is 2^32 - 1).
MemoryTooLittleThe memory cost is too small (minimum is 8 x parallelism).
MemoryTooMuchThe memory cost is too large (maximum 2GiB on 32-bit or 4TiB on 64-bit).
LanesTooFewThe number of lanes (parallelism) is too small (minimum is 1).
LanesTooManyThe number of lanes (parallelism) is too large (maximum is 2^24 - 1).
IncorrectTypeIncorrect Argon2 variant.
IncorrectVersionIncorrect Argon2 version.
DecodingFailThe decoding of the encoded data has failed.
Trait Implementations
impl PartialEq<Error> for Error[src]
fn eq(&self, other: &Error) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl From<DecodeError> for Error[src]
impl Debug for Error[src]
impl Display for Error[src]
impl Error for Error[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,