Enum AesMode
#[repr(u8)]
pub enum AesMode
AES variant used.
Variants
-
Aes128 = 0x01 128-bit AES encryption.
-
Aes192 = 0x02 192-bit AES encryption.
-
Aes256 = 0x03 256-bit AES encryption.
Implementations
impl AesMode
const fn as_u8(self) -> u8As u8
impl AesMode
const fn salt_length(&self) -> usizeLength of the salt for the given AES mode.
const fn key_length(&self) -> usizeLength of the key for the given AES mode.
Trait Implementations
impl Clone for AesMode
fn clone(&self) -> AesMode
impl Copy for AesMode
impl Debug for AesMode
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for AesMode
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for AesMode
impl PartialEq for AesMode
fn eq(&self, other: &AesMode) -> bool
impl StructuralPartialEq for AesMode
impl TryFrom<u8> for AesMode
type Error = &'static str;fn try_from(value: u8) -> Result<Self, Self::Error>
Auto Trait Implementations
impl Freeze for AesMode
impl RefUnwindSafe for AesMode
impl Send for AesMode
impl Sync for AesMode
impl Unpin for AesMode
impl UnsafeUnpin for AesMode
impl UnwindSafe for AesMode
Blanket Implementations
impl<Q, K> Equivalent<K> for AesMode
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<Q, K> Equivalent<K> for AesMode
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<T> Any for AesMode
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AesMode
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AesMode
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for AesMode
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for AesMode
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Same for AesMode
type Output = T;
impl<T> ToOwned for AesMode
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for AesMode
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for AesMode
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for AesMode
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for AesMode
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>