Enum kpdb::Error [] [src]

pub enum Error {
    CryptoError(SymmetricCipherError),
    InvalidBlockHash,
    InvalidBlockId(u32),
    InvalidDbSignature([u8; 4]),
    InvalidFinalBlockHash([u8; 32]),
    InvalidHeaderHash,
    InvalidHeaderSize {
        id: u8,
        expected: u16,
        actual: u16,
    },
    InvalidKey,
    InvalidKeyFile,
    Io(Error),
    MissingHeader(u8),
    UnhandledCompression(u32),
    UnhandledDbType([u8; 4]),
    UnhandledHeader(u8),
    UnhandledMasterCipher([u8; 16]),
    UnhandledStreamCipher(u32),
    Unimplemented(String),
    XmlError(String),
}

Error type for database errors.

Variants

Error during the encryption or decryption of the database.

The hash of a data block is invalid.

The data block has an invalid identifier.

The database signature is invalid.

The hash of the final data block is invalid.

The header hash is invalid (doesn't match expected hash).

The size of a header is invalid

Fields of InvalidHeaderSize

Header identifier.

Expected size.

Actual size.

The key (user's password and key file) is invalid.

The key file is invalid.

An I/O error has occurred.

The supplied header is missing.

The compression algorithm specified in the headers is not supported.

The database type specified in the headers is not supported.

The header type used in the headers is not supported.

The master encryption algorithm is not supported.

The stream encryption algorithm is not supported.

The specified functionality is not yet supported.

The XML contains the specified error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<SymmetricCipherError> for Error
[src]

[src]

Performs the conversion.