pub struct SymmetricKey(/* private fields */);Expand description
A 128-bit symmetric key.
Zeroised on drop, and compared in constant time. There is no Debug that prints it and
no Deref to the bytes: getting at the material is SymmetricKey::as_bytes, which is
easy to grep for in a review.
Implementations§
Trait Implementations§
Source§impl Clone for SymmetricKey
impl Clone for SymmetricKey
Source§impl Debug for SymmetricKey
impl Debug for SymmetricKey
Source§impl Drop for SymmetricKey
impl Drop for SymmetricKey
impl Eq for SymmetricKey
Source§impl PartialEq for SymmetricKey
impl PartialEq for SymmetricKey
Auto Trait Implementations§
impl Forget for SymmetricKey
impl Freeze for SymmetricKey
impl Move for SymmetricKey
impl RefUnwindSafe for SymmetricKey
impl Send for SymmetricKey
impl Sync for SymmetricKey
impl Unpin for SymmetricKey
impl UnsafeUnpin for SymmetricKey
impl UnwindSafe for SymmetricKey
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