pub enum EncryptionAlgorithm {
Aes128Gcm,
Aes192Gcm,
Aes256Gcm,
}
Expand description
Cryptographic algorithm that should be used with the Encryption
/Decryption
traits
Variants§
Aes128Gcm
128-bit AES in Galois/Counter Mode
Aes192Gcm
192-bit AES in Galois/Counter Mode
Aes256Gcm
256-bit AES in Galois/Counter Mode
Trait Implementations§
source§impl From<EncryptionAlgorithm> for Cipher
impl From<EncryptionAlgorithm> for Cipher
source§fn from(algo: EncryptionAlgorithm) -> Cipher
fn from(algo: EncryptionAlgorithm) -> Cipher
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncryptionAlgorithm
impl RefUnwindSafe for EncryptionAlgorithm
impl Send for EncryptionAlgorithm
impl Sync for EncryptionAlgorithm
impl Unpin for EncryptionAlgorithm
impl UnwindSafe for EncryptionAlgorithm
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