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) -> u8

As u8

impl AesMode

const fn salt_length(&self) -> usize

Length of the salt for the given AES mode.

const fn key_length(&self) -> usize

Length of the key for the given AES mode.

Trait Implementations

impl Clone for AesMode

fn clone(&self) -> Self

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: &Self) -> 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,

impl<Q, K> Equivalent<K> for AesMode where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

impl<T> Any for AesMode where T: 'static + ?Sized,

impl<T> Borrow<T> for AesMode where T: ?Sized,

impl<T> BorrowMut<T> for AesMode where T: ?Sized,

impl<T> CloneToUninit for AesMode where T: Clone,

impl<T> From<T> for AesMode

impl<T> Same for AesMode

impl<T> ToOwned for AesMode where T: Clone,

impl<T> ToString for AesMode where T: Display + ?Sized,

impl<T, U> Into<U> for AesMode where U: From<T>,

impl<T, U> TryFrom<U> for AesMode where U: Into<T>,

impl<T, U> TryInto<U> for AesMode where U: TryFrom<T>,