pub enum Algorithm {
Aes128,
Aes192,
Aes256,
Des,
TripleDes,
}Expand description
Symmetric block cipher selection for Cipher.
Variants§
Aes128
AES with a 128-bit key (FIPS 197). 16-byte block.
Aes192
AES with a 192-bit key (FIPS 197). 16-byte block.
Aes256
AES with a 256-bit key (FIPS 197). 16-byte block.
Des
Single DES (FIPS 46-3). 8-byte block, 8-byte key (56 effective bits). Legacy / cryptographically broken: shipped for interop only.
TripleDes
Triple DES (FIPS 46-3, EDE3). 8-byte block, 24-byte key. Legacy / deprecated: shipped for interop only.
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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