pub enum Cipher {
None,
Aes128Ctr,
Aes192Ctr,
Aes256Ctr,
Aes128Gcm,
Aes192Gcm,
Aes256Gcm,
}
Expand description
Supported cipher algorithms.
Variants§
None
No encryption.
Aes128Ctr
AES with a 128-bit key in CTR mode
Aes192Ctr
AES with a 192-bit key in CTR mode
Aes256Ctr
AES with a 256-bit key in CTR mode
Aes128Gcm
AES with a 128-bit key in GCM mode
Aes192Gcm
AES with a 192-bit key in GCM mode
Aes256Gcm
AES with a 256-bit key in GCM mode
Implementations§
Trait Implementations§
impl Copy for Cipher
impl StructuralPartialEq for Cipher
Auto Trait Implementations§
impl Freeze for Cipher
impl RefUnwindSafe for Cipher
impl Send for Cipher
impl Sync for Cipher
impl Unpin for Cipher
impl UnwindSafe for Cipher
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