Enum parsec_interface::operations::psa_algorithm::Cipher [−][src]
pub enum Cipher { StreamCipher, Ctr, Cfb, Ofb, Xts, EcbNoPadding, CbcNoPadding, CbcPkcs7, }
Expand description
Enumeration of symmetric encryption algorithms supported.
Variants
The stream cipher mode of a stream cipher algorithm.
A stream cipher built using the Counter (CTR) mode of a block cipher.
A stream cipher built using the Cipher Feedback (CFB) mode of a block cipher.
A stream cipher built using the Output Feedback (OFB) mode of a block cipher.
The XTS cipher mode of a block cipher.
The Electronic Code Book (ECB) mode of a block cipher, with no padding.
The Cipher Block Chaining (CBC) mode of a block cipher, with no padding.
The Cipher Block Chaining (CBC) mode of a block cipher, with PKCS#7 padding.
Implementations
Check is the cipher algorithm is a mode of a block cipher.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Cipher, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Cipher, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Cipher
impl UnwindSafe for Cipher
Blanket Implementations
Mutably borrows from an owned value. Read more