[][src]Enum custom_codes::SecOps

pub enum SecOps {
    KeyCorrupted,
    KeyAuthentic,
    KeyInvalid,
    TimedOut,
    PossibleIdTheft,
    DataCorrupted,
    DataInvalid,
    Encrypted,
    KeyGenSucceded,
    KeyGenFailed,
    KeyDeleted,
    CryptoRandomGenerated,
    CryptoRandomGenFailure,
    NonCryptoRandomGenerated,
    NonCryptoRandomGenFailure,
    AuthenticMAC,
    InvalidMAC,
    ValidRAC,
    InvalidRAC,
    KeyLengthSane,
    KeyTooShort(KeyLength),
    KeyTooLong(KeyLength),
}

Security operations on encryption and keys

Examples

let foo = SecOps::KeyCorrupted;
assert_eq!(foo, SecOps::KeyCorrupted);

Variants

KeyCorrupted

Key could not be verified as it did not finish streaming

KeyAuthentic

Key Authentic and approved

KeyInvalid

Key has been tampered with

TimedOut

Timed Out while verification was in progress

PossibleIdTheft

Possible Identity Forgery

DataCorrupted

Data encrypted has been corrupted

DataInvalid

Data has been tampered with

Encrypted

Data has been encrypted

KeyGenSucceded

Key generation successful,

KeyGenFailed

Key generation failed

KeyDeleted

Key has been deleted

CryptoRandomGenerated

random data generated from Cryptographically Secure PRNG (CSPRNG)

CryptoRandomGenFailure

random data generated from Cryptographically Secure PRNG (CSPRNG) was not generated successfully

NonCryptoRandomGenerated

random data generated from Noncryptographic PRNG

NonCryptoRandomGenFailure

random data generated from Noncryptographic PRNG was not generated successfully

AuthenticMAC

Message Authentication Code is authentic

InvalidMAC

Message Authentication Code is corrupted

ValidRAC

Random Authentication Code (RAC) Token is genuine/authentic

InvalidRAC

Random Authentication Code (RAC) Token is not genuine/authentic

KeyLengthSane

Key Length is equal to the length needed by the cryptography algorithm

KeyTooShort(KeyLength)

Key length too short

KeyTooLong(KeyLength)

Key Length is too long

Trait Implementations

impl Clone for SecOps[src]

impl Debug for SecOps[src]

impl<'de> Deserialize<'de> for SecOps[src]

impl Display for SecOps[src]

impl Eq for SecOps[src]

impl Error for SecOps[src]

impl PartialEq<SecOps> for SecOps[src]

impl Serialize for SecOps[src]

impl StructuralEq for SecOps[src]

impl StructuralPartialEq for SecOps[src]

Auto Trait Implementations

impl RefUnwindSafe for SecOps

impl Send for SecOps

impl Sync for SecOps

impl Unpin for SecOps

impl UnwindSafe for SecOps

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.