Enum argon2::Error [] [src]

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

Error type for Argon2 errors.

Variants

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

The output (hash) is too long (maximum is 232 - 1).

The password is too short (minimum is 0).

The password is too long (maximum is 232 - 1).

The salt is too short (minimum is 8).

The salt is too long (maximum is 232 - 1).

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

The associated data is too long (maximum is 232 - 1).

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

The secret value is too long (maximum is 232 - 1).

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

The time cost (passes) is too large (maximum is 232 - 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 224 - 1).

Incorrect Argon2 variant.

The decoding of the encoded data has failed.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

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.

impl Error for Error
[src]

A short description of the error. Read more

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