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

pub enum Aead {
    AeadWithDefaultLengthTag(AeadWithDefaultLengthTag),
    AeadWithShortenedTag {
        aead_alg: AeadWithDefaultLengthTag,
        tag_length: usize,
    },
}

Enumeration of authenticated encryption with additional data algorithms supported.

Variants

AeadWithDefaultLengthTag(AeadWithDefaultLengthTag)

AEAD algorithm with a default length tag

AeadWithShortenedTag

AEAD algorithm with a shortened tag.

Fields of AeadWithShortenedTag

aead_alg: AeadWithDefaultLengthTag

An AEAD algorithm.

tag_length: usize

Desired length of the authentication tag in bytes.

Implementations

impl Aead[src]

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

Check if the Aead algorithm needs a block cipher

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

Check if this AEAD algorithm is the (truncated or not) Chacha20-Poly1305 AEAD algorithm.

Trait Implementations

impl Clone for Aead[src]

impl Copy for Aead[src]

impl Debug for Aead[src]

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

impl From<Aead> for Algorithm[src]

impl From<AeadWithDefaultLengthTag> for Aead[src]

impl PartialEq<Aead> for Aead[src]

impl Serialize for Aead[src]

impl StructuralPartialEq for Aead[src]

impl Zeroize for Aead[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> 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, 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.