Enum pretty_good::SymmetricKeyAlgorithm
[−]
[src]
#[repr(u8)]pub enum SymmetricKeyAlgorithm { Plaintext, Idea, TripleDes, Cast5, Blowfish, Aes128, Aes192, Aes256, Twofish, Reserved, Unknown, }
Type for symmetric key algorithms supported by OpenPGP.
Variants
Plaintext
Idea
TripleDes
Cast5
Blowfish
Aes128
Aes192
Aes256
Twofish
Reserved
Unknown
Methods
impl SymmetricKeyAlgorithm
[src]
pub fn block_bytes(&self) -> usize
[src]
The block size of this cipher in bytes.
Trait Implementations
impl Clone for SymmetricKeyAlgorithm
[src]
fn clone(&self) -> SymmetricKeyAlgorithm
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SymmetricKeyAlgorithm
[src]
impl Debug for SymmetricKeyAlgorithm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for SymmetricKeyAlgorithm
[src]
fn eq(&self, __arg_0: &SymmetricKeyAlgorithm) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for SymmetricKeyAlgorithm
[src]
impl From<u8> for SymmetricKeyAlgorithm
[src]
fn from(val: u8) -> SymmetricKeyAlgorithm
[src]
Performs the conversion.