Enum psa_crypto::types::algorithm::Aead [−][src]
pub enum Aead {
AeadWithDefaultLengthTag(AeadWithDefaultLengthTag),
AeadWithShortenedTag {
aead_alg: AeadWithDefaultLengthTag,
tag_length: usize,
},
}Expand description
Enumeration of authenticated encryption with additional data algorithms supported.
Variants
AEAD algorithm with a default length tag
Tuple Fields of AeadWithDefaultLengthTag
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
Check if the Aead algorithm needs a block cipher
Check if this AEAD algorithm is the (truncated or not) Chacha20-Poly1305 AEAD algorithm.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Aead
impl UnwindSafe for Aead
Blanket Implementations
Mutably borrows from an owned value. Read more