Enum encryptfile::EncryptError [] [src]

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
HeaderTooSmall
ShortIvRead
ShortHmacRead
BadHeaderMagic
UnexpectedVersion
InvalidHmacLength
HmacMismatch
InvalidPasswordGenMethod
InvalidKeyMetadataType
UnexpectedEnumVariant
NoKeyMetadataFound
ByteOrderError
IoError
CryptoError
InternalError

Trait Implementations

impl From<Error> for EncryptError

fn from(e: Error) -> Self

impl From<Error> for EncryptError

fn from(e: Error) -> Self

Derived Implementations

impl Debug for EncryptError

fn fmt(&self, __arg_0: &mut Formatter) -> Result