pub enum Key {
Aes256([u8; 32]),
Aes192([u8; 24]),
Aes128([u8; 16]),
}Expand description
Represents different AES key sizes.
AES (Advanced Encryption Standard) supports three key sizes:
- 128-bit (16 bytes)
- 192-bit (24 bytes)
- 256-bit (32 bytes)
This enum allows for type-safe handling of these different key sizes.
Variants§
Aes256([u8; 32])
256-bit AES key (32 bytes)
Aes192([u8; 24])
192-bit AES key (24 bytes)
Aes128([u8; 16])
128-bit AES key (16 bytes)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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