pub enum EncryptError {
ValidateFailed(ValidateError),
OsRngFailed(Error),
OutputFileExists,
PwKeyIsZeroed,
IvIsZeroed,
IvEqualsCheckValue,
HeaderTooSmall,
ShortIvRead,
ShortHmacRead,
BadHeaderMagic,
UnexpectedVersion(u32, u32),
InvalidHmacLength,
HmacMismatch,
InvalidPasswordGenMethod,
InvalidKeyMetadataType(u32),
UnexpectedEnumVariant(String),
NoKeyMetadataFound(String),
ByteOrderError(Error),
IoError(Error),
CryptoError(CryptoError),
InternalError(String),
}
Variants
ValidateFailed | |
OsRngFailed | |
OutputFileExists | |
PwKeyIsZeroed | |
IvIsZeroed | |
IvEqualsCheckValue | |
|
ShortIvRead | |
ShortHmacRead | |
|
UnexpectedVersion | |
InvalidHmacLength | |
HmacMismatch | |
InvalidPasswordGenMethod | |
InvalidKeyMetadataType | |
UnexpectedEnumVariant | |
NoKeyMetadataFound | |
ByteOrderError | |
IoError | |
CryptoError | |
InternalError | |
Trait Implementations
Derived Implementations