pub struct DerivedKey(/* private fields */);Expand description
32-byte derived key material. Zeroed on drop.
Implementations§
Source§impl DerivedKey
impl DerivedKey
pub fn as_bytes(&self) -> &[u8; 32]
Sourcepub fn from_bytes(bytes: [u8; 32]) -> DerivedKey
pub fn from_bytes(bytes: [u8; 32]) -> DerivedKey
Construct a DerivedKey from raw bytes. Used by callers that already
hold key material from another source (e.g. test fixtures).
Auto Trait Implementations§
impl Freeze for DerivedKey
impl RefUnwindSafe for DerivedKey
impl Send for DerivedKey
impl Sync for DerivedKey
impl Unpin for DerivedKey
impl UnsafeUnpin for DerivedKey
impl UnwindSafe for DerivedKey
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