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
OutputTooShortThe output (hash) is too short (minimum is 4).
OutputTooLongThe output (hash) is too long (maximum is 232 - 1).
PwdTooShortThe password is too short (minimum is 0).
PwdTooLongThe password is too long (maximum is 232 - 1).
SaltTooShortThe salt is too short (minimum is 8).
SaltTooLongThe salt is too long (maximum is 232 - 1).
AdTooShortThe associated data is too short (minimum is 0).
AdTooLongThe associated data is too long (maximum is 232 - 1).
SecretTooShortThe secret value is too short (minimum is 0).
SecretTooLongThe secret value is too long (maximum is 232 - 1).
TimeTooSmallThe time cost (passes) is too small (minimum is 1).
TimeTooLargeThe time cost (passes) is too large (maximum is 232 - 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 224 - 1).
IncorrectTypeIncorrect Argon2 variant.
DecodingFailThe decoding of the encoded data has failed.
Trait Implementations
impl Debug for Error[src]
impl PartialEq for Error[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.