Struct esp32c3_hal::aes::Key
source · pub struct Key<'b, T>where
T: AesFlavour,{ /* private fields */ }
Expand description
Aes cipher key
A Key
can be initialized from an array of appropriate length:
let key = Key::<Aes128>::from(&[0_u8;16]);
let key = Key::<Aes192>::from(&[0_u8;24]);
let key = Key::<Aes256>::from(&[0_u8;32]);
Trait Implementations§
Auto Trait Implementations§
impl<'b, T> RefUnwindSafe for Key<'b, T>where T: RefUnwindSafe,
impl<'b, T> Send for Key<'b, T>where T: Send,
impl<'b, T> Sync for Key<'b, T>where T: Sync,
impl<'b, T> Unpin for Key<'b, T>where T: Unpin,
impl<'b, T> UnwindSafe for Key<'b, T>where T: UnwindSafe,
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