Enum argon2::Error [−][src]
pub enum Error {
Show 19 variants
OutputTooShort,
OutputTooLong,
PwdTooShort,
PwdTooLong,
SaltTooShort,
SaltTooLong,
AdTooShort,
AdTooLong,
SecretTooShort,
SecretTooLong,
TimeTooSmall,
TimeTooLarge,
MemoryTooLittle,
MemoryTooMuch,
LanesTooFew,
LanesTooMany,
IncorrectType,
IncorrectVersion,
DecodingFail,
}
Expand description
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
use the Display impl or to_string()
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more