#[repr(u8)]pub enum AesMode {
Aes128 = 1,
Aes192 = 2,
Aes256 = 3,
}Expand description
AES variant used.
Variants§
Aes128 = 1
128-bit AES encryption.
Aes192 = 2
192-bit AES encryption.
Aes256 = 3
256-bit AES encryption.
Implementations§
source§impl AesMode
impl AesMode
sourcepub const fn salt_length(&self) -> usize
Available on crate feature aes-crypto only.
pub const fn salt_length(&self) -> usize
aes-crypto only.Length of the salt for the given AES mode.
sourcepub const fn key_length(&self) -> usize
Available on crate feature aes-crypto only.
pub const fn key_length(&self) -> usize
aes-crypto only.Length of the key for the given AES mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AesMode
impl RefUnwindSafe for AesMode
impl Send for AesMode
impl Sync for AesMode
impl Unpin for AesMode
impl UnwindSafe for AesMode
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)