[][src]Enum argon2::Error

pub enum Error {
    OutputTooShort,
    OutputTooLong,
    PwdTooShort,
    PwdTooLong,
    SaltTooShort,
    SaltTooLong,
    AdTooShort,
    AdTooLong,
    SecretTooShort,
    SecretTooLong,
    TimeTooSmall,
    TimeTooLarge,
    MemoryTooLittle,
    MemoryTooMuch,
    LanesTooFew,
    LanesTooMany,
    IncorrectType,
    IncorrectVersion,
    DecodingFail,
}

Error type for Argon2 errors.

Variants

The output (hash) is too short (minimum is 4).

The output (hash) is too long (maximum is 2^32 - 1).

The password is too short (minimum is 0).

The password is too long (maximum is 2^32 - 1).

The salt is too short (minimum is 8).

The salt is too long (maximum is 2^32 - 1).

The associated data is too short (minimum is 0).

The associated data is too long (maximum is 2^32 - 1).

The secret value is too short (minimum is 0).

The secret value is too long (maximum is 2^32 - 1).

The time cost (passes) is too small (minimum is 1).

The time cost (passes) is too large (maximum is 2^32 - 1).

The memory cost is too small (minimum is 8 x parallelism).

The memory cost is too large (maximum 2GiB on 32-bit or 4TiB on 64-bit).

The number of lanes (parallelism) is too small (minimum is 1).

The number of lanes (parallelism) is too large (maximum is 2^24 - 1).

Incorrect Argon2 variant.

Incorrect Argon2 version.

The decoding of the encoded data has failed.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

Deprecating in 1.33.0

: replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

The lower-level source of this error, if any. Read more

impl From<DecodeError> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T
[src]