Enum Algomode
#[repr(u8)]pub enum Algomode {
Show 16 variants
TdesEcb = 0,
TdesCbc = 1,
DesEcb = 2,
DesCbc = 3,
AesEcb = 4,
AesCbc = 5,
AesCtr = 6,
AesKey = 7,
AesGcm = 8,
AesCcm = 9,
_RESERVED_a = 10,
_RESERVED_b = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
_RESERVED_e = 14,
_RESERVED_f = 15,
}Variants§
TdesEcb = 0
Triple-DES electronic codebook.
TdesCbc = 1
Triple-DES cipher block chaining.
DesEcb = 2
Simple DES electronic codebook.
DesCbc = 3
Simple DES cipher block chaining.
AesEcb = 4
AES electronic codebook.
AesCbc = 5
AES cipher block chaining.
AesCtr = 6
AES counter mode.
AesKey = 7
AES key preparation for ECB or CBC decryption.
AesGcm = 8
AES Galois counter mode (GCM) and Galois message authentication code (GMAC).
AesCcm = 9
AES counter with CBC-MAC (CCM).
_RESERVED_a = 10
_RESERVED_b = 11
_RESERVED_c = 12
_RESERVED_d = 13
_RESERVED_e = 14
_RESERVED_f = 15
Implementations§
Trait Implementations§
impl Copy for Algomode
impl Eq for Algomode
§impl Ord for Algomode
impl Ord for Algomode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for Algomode
impl PartialOrd for Algomode
impl StructuralPartialEq for Algomode
Auto Trait Implementations§
impl Freeze for Algomode
impl RefUnwindSafe for Algomode
impl Send for Algomode
impl Sync for Algomode
impl Unpin for Algomode
impl UnsafeUnpin for Algomode
impl UnwindSafe for Algomode
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