#[repr(u8)]pub enum SymmetricKeyAlgorithm {
Plaintext = 0,
Idea = 1,
TripleDes = 2,
Cast5 = 3,
Blowfish = 4,
Aes128 = 7,
Aes192 = 8,
Aes256 = 9,
Twofish = 10,
Reserved = 11,
Unknown = 12,
}Expand description
Type for symmetric key algorithms supported by OpenPGP.
Variants§
Plaintext = 0
Idea = 1
TripleDes = 2
Cast5 = 3
Blowfish = 4
Aes128 = 7
Aes192 = 8
Aes256 = 9
Twofish = 10
Reserved = 11
Unknown = 12
Implementations§
Source§impl SymmetricKeyAlgorithm
impl SymmetricKeyAlgorithm
Sourcepub fn block_bytes(&self) -> usize
pub fn block_bytes(&self) -> usize
The block size of this cipher in bytes.
Trait Implementations§
Source§impl Clone for SymmetricKeyAlgorithm
impl Clone for SymmetricKeyAlgorithm
Source§fn clone(&self) -> SymmetricKeyAlgorithm
fn clone(&self) -> SymmetricKeyAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SymmetricKeyAlgorithm
impl Debug for SymmetricKeyAlgorithm
Source§impl From<u8> for SymmetricKeyAlgorithm
impl From<u8> for SymmetricKeyAlgorithm
Source§fn from(val: u8) -> SymmetricKeyAlgorithm
fn from(val: u8) -> SymmetricKeyAlgorithm
Converts to this type from the input type.
Source§impl PartialEq for SymmetricKeyAlgorithm
impl PartialEq for SymmetricKeyAlgorithm
impl Copy for SymmetricKeyAlgorithm
impl Eq for SymmetricKeyAlgorithm
impl StructuralPartialEq for SymmetricKeyAlgorithm
Auto Trait Implementations§
impl Freeze for SymmetricKeyAlgorithm
impl RefUnwindSafe for SymmetricKeyAlgorithm
impl Send for SymmetricKeyAlgorithm
impl Sync for SymmetricKeyAlgorithm
impl Unpin for SymmetricKeyAlgorithm
impl UnwindSafe for SymmetricKeyAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more