[][src]Enum parsec_interface::operations::psa_algorithm::Cipher

pub enum Cipher {
    StreamCipher,
    Ctr,
    Cfb,
    Ofb,
    Xts,
    EcbNoPadding,
    CbcNoPadding,
    CbcPkcs7,
}

Enumeration of symmetric encryption algorithms supported.

Variants

StreamCipher

The stream cipher mode of a stream cipher algorithm.

Ctr

A stream cipher built using the Counter (CTR) mode of a block cipher.

Cfb

A stream cipher built using the Cipher Feedback (CFB) mode of a block cipher.

Ofb

A stream cipher built using the Output Feedback (OFB) mode of a block cipher.

Xts

The XTS cipher mode of a block cipher.

EcbNoPadding

The Electronic Code Book (ECB) mode of a block cipher, with no padding.

CbcNoPadding

The Cipher Block Chaining (CBC) mode of a block cipher, with no padding.

CbcPkcs7

The Cipher Block Chaining (CBC) mode of a block cipher, with PKCS#7 padding.

Methods

impl Cipher[src]

pub fn is_block_cipher_mode(self) -> bool[src]

Check is the cipher algorithm is a mode of a block cipher.

Trait Implementations

impl Clone for Cipher[src]

impl Copy for Cipher[src]

impl Debug for Cipher[src]

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

impl From<Cipher> for Algorithm[src]

impl PartialEq<Cipher> for Cipher[src]

impl Serialize for Cipher[src]

impl StructuralPartialEq for Cipher[src]

impl TryFrom<i32> for Cipher[src]

type Error = ResponseStatus

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Cipher

impl Send for Cipher

impl Sync for Cipher

impl Unpin for Cipher

impl UnwindSafe for Cipher

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.