[][src]Enum fog_pack::CryptoError

pub enum CryptoError {
    UnsupportedVersion,
    DecryptFailed,
    BadLength,
    BadKey,
    BadFormat,
    NotInStorage,
    Io(Error),
}

Possible cryptographic submodule error conditions.

Variants

UnsupportedVersion

Crypto primitive uses a version this library doesn't recognize (or one it no longer accepts).

DecryptFailed

Crypto system was unable to decrypt the contents of a Lockbox.

BadLength

The provided data for encode/decode wasn't the correct length.

BadKey

A provided cryptographic key is weak or invalid.

BadFormat

The data format doesn't match spec. Only occurs when decoding a Lockbox and the internal data marker isn't recognized.

NotInStorage

A requested private key or stream key was not in the Vault storage.

Io(Error)

Decode/Encode error occurred.

Trait Implementations

impl Debug for CryptoError[src]

impl Display for CryptoError[src]

impl Error for CryptoError[src]

impl From<CryptoError> for Error[src]

impl From<Error> for CryptoError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.