[−][src]Enum parsec_interface::operations::psa_algorithm::Aead
Enumeration of authenticated encryption with additional data algorithms supported.
Variants
AeadWithDefaultLengthTag(AeadWithDefaultLengthTag)AEAD algorithm with a default length tag
AEAD algorithm with a shortened tag.
Fields of AeadWithShortenedTag
aead_alg: AeadWithDefaultLengthTagAn AEAD algorithm.
tag_length: usizeDesired length of the authentication tag in bytes.
Implementations
impl Aead[src]
pub fn is_block_cipher_needed(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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl From<Aead> for Algorithm[src]
impl PartialEq<Aead> for Aead[src]
impl Serialize for Aead[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for Aead[src]
Auto Trait Implementations
impl RefUnwindSafe for Aead
impl Send for Aead
impl Sync for Aead
impl Unpin for Aead
impl UnwindSafe for Aead
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,