pub enum Key {
B128([u8; 16]),
B256([u8; 32]),
}Available on crate feature
allow-non-fips only.Expand description
Represents either a 128-bit or 256-bit ChaCha20 key.
Variants§
Implementations§
Trait Implementations§
Source§impl GenericKey for Key
impl GenericKey for Key
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