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