[][src]Enum custom_codes::SecOps

pub enum SecOps {
    KeyCorrupted,
    KeyAuthentic,
    KeyInvalid,
    TimedOut,
    PossibleIdTheft,
    DataCorrupted,
    DataInvalid,
    Encrypted,
    KeyGenTrue,
    KeyGenFailed,
    KeyDeleted,
    CryptoRandomGenerated,
    NonCryptoRandomGenerated,
    AuthenticMAC,
    InvalidMAC,
    ValidRAC,
    InvalidRAC,
}

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

KeyGenTrue

Key generation successful,

KeyGenFailed

Key generation failed

KeyDeleted

Key has been deleted

CryptoRandomGenerated

random data generated from Cryptographically Secure PRNG (CSPRNG)

NonCryptoRandomGenerated

random data generated from Noncryptographic PRNG

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

Trait Implementations

impl Clone for SecOps[src]

impl Debug for SecOps[src]

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

impl Eq 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: 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, 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.